I have a context menu in a view that calls the correct handler, but the command parameter is not being passed.
<TextBlock DockPanel.Dock="Left"
Margin="0,3,1,0"
VerticalAlignment="Center">
<TextBlock.ContextMenu>
<ContextMenu>...
My Menu is perfectly bound with observable collection in view model and all submenu items fires click event properly using below xaml, but I am unable to set the same click event for first menu items. Is it possible to set same click event on all primary menu items?
<Menu Background="Lavender"...
I can assign them using <Menuitem Header> but how to view all the items present in the Observable collection in a view model?
<Menu Grid.Row="1" Grid.Column="1" Width="100" VerticalAlignment="Center" Background="Gray">
<MenuItem Header="Item Collection">
<MenuItem...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.