Home Forums WPF controls Xceed Toolkit Plus for WPF PropertyGrid Context Menu

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • kmarois
    Participant
    Post count: 2
    #50265 |

    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?

    Diane [Xceed]
    Moderator
    Post count: 1353

    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>
    kmarois
    Participant
    Post count: 2

    How do you pass the SelectedObject as the command parameter?

    Diane [Xceed]
    Moderator
    Post count: 1353

    Where do you want to pass the SelectedObject as a Command parameter?
    Could you provide an example? Thank you.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.