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
535
Disable mouseover on custom sub items
posted

Hello i have a listbox as a sub item under a xammenu item.

<ig:XamMenuItem Header="item1">

<ListBox ItemsSource="{Binding ExternalClients}" ItemTemplate="{StaticResource DataTemplateUserExternalClients}" SelectedValue="{Binding SelectedExternalClient,Mode=TwoWay}" SelectedValuePath="Key"></ListBox>

</ig:XamMenuItem>

but i dont want my listbox to be covered by the mouseover overlay of the first item.

how to prevent this?

Parents
No Data
Reply
  • 138253
    Verified Answer
    Offline posted

    Hello Fredrik,

     

    Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I copied the default Style of the XamMenuItem and bound Opacity of the element that is responsible for the highlight (a Rectangle called SelectedIndicator) to the Content of the MenuItem. I also used a converter to determine what opacity to set based on the Content. Please let me know if this helps you or you need further assistance on this matter.

     

    Looking forward for your reply.

    XamMenuItemHighlight.zip
Children