PageRenderTime 17ms CodeModel.GetById 16ms app.highlight 0ms RepoModel.GetById 1ms 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
 9			<d3:PositionalViewportUIContainer Name="container" Position="0.45,0.45">
10				<Rectangle Width="50" Height="50" Fill="Cornsilk" Stroke="Black" Name="rectangle">
11					
12					<d3:DefaultContextMenu.PlotterContextMenu>
13						<d3:ObjectCollection>
14							<MenuItem Header="Change Color" Click="MenuItem_Click"/>
15						</d3:ObjectCollection>
16					</d3:DefaultContextMenu.PlotterContextMenu>
17				
18				</Rectangle>
19			</d3:PositionalViewportUIContainer>
20
21			<d3:AxisCursorGraph/>
22		</d3:ChartPlotter>
23	</Grid>
24</Window>