1 | <d3:ContentGraph x:Class="Microsoft.Research.DynamicDataDisplay.Charts.Navigation.CursorCoordinateGraph"
|
---|
2 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
---|
3 | xmlns:d3="clr-namespace:Microsoft.Research.DynamicDataDisplay.Charts"
|
---|
4 | xmlns:d3nav="clr-namespace:Microsoft.Research.DynamicDataDisplay.Charts.Navigation"
|
---|
5 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
---|
6 | IsHitTestVisible="False" Panel.ZIndex="1">
|
---|
7 |
|
---|
8 | <d3:ContentGraph.Resources>
|
---|
9 | <Style x:Key="outerBorderStyle" TargetType="{x:Type Rectangle}" >
|
---|
10 | <Setter Property="RadiusX" Value="10"/>
|
---|
11 | <Setter Property="RadiusY" Value="10"/>
|
---|
12 | <Setter Property="Stroke" Value="LightGray"/>
|
---|
13 | <Setter Property="StrokeThickness" Value="1"/>
|
---|
14 | <Setter Property="Fill" Value="#88FFFFFF"/>
|
---|
15 | </Style>
|
---|
16 |
|
---|
17 | <Style x:Key="innerBorderStyle" TargetType="{x:Type Border}">
|
---|
18 | <Setter Property="CornerRadius" Value="4"/>
|
---|
19 | <Setter Property="Background" Value="White"/>
|
---|
20 | <Setter Property="Margin" Value="8,4,8,4"/>
|
---|
21 | </Style>
|
---|
22 |
|
---|
23 | <Style x:Key="textStyle" TargetType="{x:Type TextBlock}">
|
---|
24 | <Setter Property="Margin" Value="2,1,2,1"/>
|
---|
25 | </Style>
|
---|
26 |
|
---|
27 | <Style x:Key="lineStyle" TargetType="{x:Type Line}">
|
---|
28 | <Setter Property="Stroke" Value="{Binding
|
---|
29 | RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type d3nav:CursorCoordinateGraph}},
|
---|
30 | Path=LineStroke}"/>
|
---|
31 | <Setter Property="StrokeThickness" Value="{Binding
|
---|
32 | RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type d3nav:CursorCoordinateGraph}},
|
---|
33 | Path=LineStrokeThickness}"/>
|
---|
34 | <Setter Property="StrokeDashArray" Value="{Binding
|
---|
35 | RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type d3nav:CursorCoordinateGraph}},
|
---|
36 | Path=LineStrokeDashArray}"/>
|
---|
37 | <Setter Property="IsHitTestVisible" Value="False"/>
|
---|
38 | </Style>
|
---|
39 | </d3:ContentGraph.Resources>
|
---|
40 |
|
---|
41 | <Canvas Name="content" Cursor="None" Background="Transparent" IsHitTestVisible="False">
|
---|
42 | <Line Name="horizLine" Style="{StaticResource lineStyle}"/>
|
---|
43 | <Line Name="vertLine" Style="{StaticResource lineStyle}"/>
|
---|
44 |
|
---|
45 | <Grid Name="horizGrid" Canvas.Bottom="5">
|
---|
46 | <Rectangle Style="{StaticResource outerBorderStyle}"/>
|
---|
47 | <Border Style="{StaticResource innerBorderStyle}">
|
---|
48 | <TextBlock Name="horizTextBlock" Style="{StaticResource textStyle}"/>
|
---|
49 | </Border>
|
---|
50 | </Grid>
|
---|
51 |
|
---|
52 | <Grid Name="vertGrid" Canvas.Left="5">
|
---|
53 | <Rectangle Style="{StaticResource outerBorderStyle}"/>
|
---|
54 | <Border Style="{StaticResource innerBorderStyle}">
|
---|
55 | <TextBlock Name="vertTextBlock" Style="{StaticResource textStyle}"/>
|
---|
56 | </Border>
|
---|
57 | </Grid>
|
---|
58 | </Canvas>
|
---|
59 | </d3:ContentGraph>
|
---|