Hi, how can i change the XamMenu and XamMenuItem selected and hover-over style?
I can change the background and foreground with the xaml below but I can't see how to change the selected and hover-over style.
<Style x:Key="MenuStyle" TargetType="{x:Type ig:XamMenu}"> <Setter Property="Background" Value="{StaticResource ControlBackground}"/> <Setter Property="Foreground" Value="{StaticResource ControlForeground_Normal}"/> </Style>
<Style x:Key="MenuItemStyle" TargetType="{x:Type ig:XamMenuItem}"> <Setter Property="Background" Value="{StaticResource ControlBackground}"/> <Setter Property="Foreground" Value="{StaticResource ControlForeground_Normal}"/> </Style>
<ig:XamMenu Grid.Row="0" x:Name="MainMenu" VerticalAlignment="Top" Style="{StaticResource MenuStyle}"> <ig:XamMenuItem Header="Settings"> <ig:XamMenuItem Header="Save Settings" Style="{StaticResource MenuItemStyle}"/> <ig:XamMenuItem Header="Load Settings" Style="{StaticResource MenuItemStyle}"/> </ig:XamMenuItem> </ig:XamMenu>
Hello,
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.
Thank you for your post. I have been looking into it and I can suggest you see the sample in the Samples Browser under xamMenu / Style / Custom Hover Style section, where there is a sample showing how to achieve the functionality you want. Please let me know if this helps you or you have further questions on this matter.
Looking forward for your reply.