Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Home › Forums › WPF controls › Xceed Toolkit Plus for WPF › PropertyGrid Context Menu
Tagged: PropertyGrid Context Menu
I want to create context menus for my properties. I can’t seem to find any examples of this. Can someone provide an example of using context menus with the PropertyGrid?
Hi kmarois,
You can use the AdvancedOptionsMenu to define your ContextMenu:
<xctk:PropertyGrid SelectedObject="{Binding}">
<xctk:PropertyGrid.AdvancedOptionsMenu>
<ContextMenu>
<MenuItem Header="Menu item 1" />
<MenuItem Header="Menu item 2" />
<Separator />
<MenuItem Header="Menu item 3" />
</ContextMenu>
</xctk:PropertyGrid.AdvancedOptionsMenu>
</xctk:PropertyGrid>
How do you pass the SelectedObject as the command parameter?
Where do you want to pass the SelectedObject as a Command parameter?
Could you provide an example? Thank you.