PageRenderTime 37ms CodeModel.GetById 12ms RepoModel.GetById 0ms app.codeStats 0ms

/Main/src/DevSamples/ContextMenuSample/Window1.xaml

#
XAML | 24 lines | 20 code | 4 blank | 0 comment | 0 complexity | efbb0528ed10c94f42c0a19a4518c493 MD5 | raw file
Possible License(s): CC-BY-SA-3.0
  1. <Window x:Class="ContextMenuSample.Window1"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d3="http://research.microsoft.com/DynamicDataDisplay/1.0"
  5. Title="DynamicDataDisplay Context Menu Sample" Height="300" Width="300">
  6. <Grid>
  7. <d3:ChartPlotter Name="plotter">
  8. <d3:PositionalViewportUIContainer Name="container" Position="0.45,0.45">
  9. <Rectangle Width="50" Height="50" Fill="Cornsilk" Stroke="Black" Name="rectangle">
  10. <d3:DefaultContextMenu.PlotterContextMenu>
  11. <d3:ObjectCollection>
  12. <MenuItem Header="Change Color" Click="MenuItem_Click"/>
  13. </d3:ObjectCollection>
  14. </d3:DefaultContextMenu.PlotterContextMenu>
  15. </Rectangle>
  16. </d3:PositionalViewportUIContainer>
  17. <d3:AxisCursorGraph/>
  18. </d3:ChartPlotter>
  19. </Grid>
  20. </Window>