Hi ,
I have used Xammenu in our application. I want to add mouse hover affect to the header by changing the Foreground color from White to black. I am not finding any option do that.
Could you please provide me a solution to achieve this.
My code Snippet:-
<ig:XamMenu Name="dtMenu" ExpandOnHover="True" MenuOrientation="Horizontal" ItemTemplate="{StaticResource MenuDataTemplate}" Foreground="White" MouseEnter="dtMenu_MouseEnter"> <ig:XamMenu.HierarchicalItemTemplate> <ig:HierarchicalDataTemplate ItemsSource="{Binding Path=Reports}" ItemTemplate="{StaticResource MenuItemDataTemplate}"> <ig:HierarchicalDataTemplate.DefaultItemsContainer> <DataTemplate> <ig:XamMenuItem Click="XamMenuItem_Click" Foreground="Blue"> <ig:XamMenuItem.Icon> <Image Source="/CS.MixVisualization;component/Images/Chart.png" /> </ig:XamMenuItem.Icon> </ig:XamMenuItem> </DataTemplate> </ig:HierarchicalDataTemplate.DefaultItemsContainer> <ig:HierarchicalDataTemplate.HierarchicalItemTemplate> <ig:HierarchicalDataTemplate ItemsSource="{Binding Path=Reports}" ItemTemplate="{StaticResource MenuItemDataTemplate}"/> </ig:HierarchicalDataTemplate.HierarchicalItemTemplate> </ig:HierarchicalDataTemplate> </ig:XamMenu.HierarchicalItemTemplate> <ig:XamMenu.Background> <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"> <GradientStop Color="#FF6C8BA3" Offset="1" /> <GradientStop Color="#094981" Offset="0.25" /> </LinearGradientBrush> </ig:XamMenu.Background> </ig:XamMenu>
Hello,
I have modified the sample application that I have sent to you with my previous response in order to solve the issues that you have described. The hover foreground hover effect affects only the root menu items and the sub menu items are shown when the mouse is over the root menu item.
If you need any further assistance please do not hesitate to ask.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
Krasimir,
Still having few more issues.
Step 1 :- Mouse over on "Item2" and doesn't select any tab.
Issue :- Tab "Item2" will be highlighting. But it shouldn't because I didn't selected any menu.
Step 2:- Now mouse over "Item1" and doesn't select any tab.
Issue :- Tab "Item2" will be highlighting. But it shouldn't because I didn't selected any menu and even I Moved my mouse over on "Item1".
Please correct it and update me.
Thanks
Anil Kumar
One more Issue :-After applying the style provided by you the Submenu Icon is not visible.
please let me know how to correct it.
Code Snippet Below :- <ig:HierarchicalDataTemplate.DefaultItemsContainer> <DataTemplate> <ig:XamMenuItem Click="XamMenuItem_Click" Foreground="Blue"> <ig:XamMenuItem.Icon> <Image Source="/CS.MixVisualization;component/Images/Chart.png" /> /* Not visible */ </ig:XamMenuItem.Icon> </ig:XamMenuItem> </DataTemplate> </ig:HierarchicalDataTemplate.DefaultItemsContainer>