WPF Data Triggers
wpf data triggers
Output
<Style x:Key="NormalStyle2" TargetType="{x:Type Button}"> <Setter Property="Control.FontSize" Value="20"></Setter> <Setter Property="Control.HorizontalAlignment" Value="Center"></Setter> <Setter Property="Control.Margin" Value="10"></Setter> <Setter Property="Control.Foreground" Value="Black"></Setter> <Style.Triggers> <DataTrigger Binding="{Binding ElementName=textBox1, Path=Text.Length}" Value="0"> <Setter Property="IsEnabled" Value="False"></Setter> </DataTrigger> </Style.Triggers> </Style>
Output
WPF Data Triggers
Reviewed by Bhaumik Patel
on
7:09 AM
Rating: