Difference between TargetType=”controlType” and TargetType=”{x:Type controlType}”

Nothing. Since the property type is Type, the XAML parser knows to try and convert whatever you supply to a Type. In other scenarios, the property type might be less specific (eg. Object), and that’s where you need the markup extension, otherwise the XAML parser will just interpret your value as a String.

Leave a Comment