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?
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.
Just what i need you.
thank you