I have a tagged control. And the IsLink logical dependency property ... So, if IsLink = true, I need to make the blue Foreground and Cursor as "Hand" as well.
I can do this with bindings, but in this case I need to write two converters (BoolToCursor and BoolToForeground), but I'm too lazy for that :)
So, I tried something like this:
<Label Name="lblContent" VerticalAlignment="Center" FontSize="14"> <Label.Style> <Style TargetType="Label"> <Style.Triggers> <Trigger SourceName="myControl" Property="IsLink" Value="True"> </Trigger> </Style.Triggers> </Style> </Label.Style> label text </Label>
But this does not work ... Any ideas, gentlemen? :)
source share