Is there a difference between these two ways of setting a style's TargetType?
<Style TargetType="Grid"></Style>
<Style TargetType="{x:Type Grid}"></Style>
There is no difference. You are just explicitly adding the x:Type attribute. By default WPF parses it with {x:Type } that you added in TargetType
EDIT:
When you are using custom controls you want to explitly set the {x:Type CustomControl}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With