Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
90
How can i change the XamMenu and XamMenuItem selected and hover-over style?
posted

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>

  • 138253
    Offline posted

    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.

  • 138253
    Offline posted

    Hello,

     

    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.