/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
- <Window x:Class="ContextMenuSample.Window1"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d3="http://research.microsoft.com/DynamicDataDisplay/1.0"
- Title="DynamicDataDisplay Context Menu Sample" Height="300" Width="300">
- <Grid>
- <d3:ChartPlotter Name="plotter">
-
- <d3:PositionalViewportUIContainer Name="container" Position="0.45,0.45">
- <Rectangle Width="50" Height="50" Fill="Cornsilk" Stroke="Black" Name="rectangle">
-
- <d3:DefaultContextMenu.PlotterContextMenu>
- <d3:ObjectCollection>
- <MenuItem Header="Change Color" Click="MenuItem_Click"/>
- </d3:ObjectCollection>
- </d3:DefaultContextMenu.PlotterContextMenu>
-
- </Rectangle>
- </d3:PositionalViewportUIContainer>
-
- <d3:AxisCursorGraph/>
- </d3:ChartPlotter>
- </Grid>
- </Window>