Home > Net >  WPF novice problem solving style triggers
WPF novice problem solving style triggers

Time:03-12

Control is as follows:
 & lt; The StackPanel HorizontalAlignment="Right" Orientation "=" Horizontal "MinWidth=" 100 "& gt;  
<,1,0,0 TextBlock Margin="0" Foreground="White" Text="add" HorizontalAlignment="Right" Width="28"/& gt;



<,1,0,0 TextBlock Margin="0" Text="options" HorizontalAlignment="Right" Width="28"/& gt;





The style is as follows:
 & lt; Style: x Key="CloseButton TargetType"="Button" & gt; 





<style. Triggers>


</style>

The application of the close button style, hovering trigger changes the two properties, Opacity changes can take effect, Background change didn't effect, the great god answering questions
  •  Tags:  
  • C#
  • Related