Grid with ContextMenu : ContextMenu « Windows Presentation Foundation « C# / C Sharp






Grid with ContextMenu

Grid with ContextMenu
    
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
<Grid Background="Transparent">
  <Grid.ContextMenu>
    <ContextMenu>
      <MenuItem Header="Foo" />
      <MenuItem Header="Bar" />
    </ContextMenu>
  </Grid.ContextMenu>


</Grid>
</Page>

   
    
    
    
  








Related examples in the same category

1.ContextMenu DemoContextMenu Demo
2.Display a Context Menu with OpacityDisplay a Context Menu with Opacity