targettype

Styling both Hyperlink and TextBlock with a single style?

I have two types of text that need to follow similar coloring rules based on an enumeration: public enum Modes { A, B, C } A Style with DataTrigger markup is used to colorize: <Style TargetType="SEE BELOW" x:Key="Coloring"> <Style.Triggers> <DataTrigger Binding="{Binding Path=.}" Value="...

What's ControlTemplate TargetType attribute for in XAML? Can I avoid using it?

What's ControlTemplate TargetType attribute for? Can I avoid using it? ...