gajda-ltd

RibbonButton

Feb 13th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.86 KB | None | 0 0
  1. <ribbon:RibbonButton Label="OK" ToolTip="OK" Command="{Binding OkCommand}" CommandParameter="OK">
  2.     <ribbon:RibbonButton.Style>
  3.         <Style TargetType="{x:Type ribbon:RibbonButton}">
  4.             <Setter Property="LargeImageSource" Value="/WpfRibbonButtonSample;component/Images/OkLargeIcon.png"/>
  5.             <Style.Triggers>
  6.                 <Trigger Property="IsMouseOver" Value="True">
  7.                     <Setter Property="LargeImageSource" Value="/WpfRibbonButtonSample;component/Images/OkLargeIconHot.png"/>
  8.                 </Trigger>
  9.                 <Trigger Property="IsEnabled" Value="False">
  10.                     <Setter Property="LargeImageSource" Value="/WpfRibbonButtonSample;component/Images/OkLargeIconDisabled.png"/>
  11.                 </Trigger>
  12.             </Style.Triggers>
  13.         </Style>
  14.     </ribbon:RibbonButton.Style>
  15. </ribbon:RibbonButton>
Add Comment
Please, Sign In to add comment