Answers for "style trigger wpf"

C#
1

style trigger wpf

<TextBlock Text="Hello, styled world!" FontSize="28" HorizontalAlignment="Center" VerticalAlignment="Center">
  <TextBlock.Style>
    <Style TargetType="TextBlock">
      <Setter Property="Foreground" Value="Blue"></Setter>
        <Style.Triggers>
        	<Trigger Property="IsMouseOver" Value="True">
        		<Setter Property="Foreground" Value="Red" />
        		<Setter Property="TextDecorations" Value="Underline" />
        	</Trigger>
      	</Style.Triggers>
    </Style>
  </TextBlock.Style>
</TextBlock>
Posted by: Guest on September-15-2020

C# Answers by Framework

Browse Popular Code Answers by Language