PageRenderTime 15ms CodeModel.GetById 13ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/Main/src/DevSamples/MultiplePointSample/Window1.xaml

#
XAML | 61 lines | 33 code | 5 blank | 23 comment | 0 complexity | f048cad7f1dce33b19dcc63a36776eba MD5 | raw file
 1<Window x:Class="MultiplePointSample.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="Window1">
 6    <Grid>
 7        <d3:ChartPlotter Name="plotter" MainHorizontalAxisVisibility="Collapsed" MainVerticalAxisVisibility="Collapsed" Visible="0,0,1,1">
 8
 9            <d3:MarkerChart Name="chart">
10                <d3:MarkerChart.MarkerGenerator>
11                    <d3:TemplateMarkerGenerator2>
12                        <DataTemplate>
13                            <Ellipse IsHitTestVisible="False"
14                                d3:ViewportPanel.X="{Binding X}"
15                                d3:ViewportPanel.Y="{Binding Y}"
16                                
17                                Width="20" Height="20"
18                                >
19                                <Ellipse.Fill>
20                                    <RadialGradientBrush>
21                                        <GradientStop Color="AliceBlue" Offset="0"/>
22                                        <GradientStop Color="Blue" Offset="0.33"/>
23                                        <GradientStop Color="DarkBlue" Offset="0.67"/>
24                                        <GradientStop Color="SkyBlue" Offset="1"/>
25                                    </RadialGradientBrush>
26                                </Ellipse.Fill>
27                                <!--<Ellipse.ToolTip>
28                                    <TextBlock>
29                                        <TextBlock Text="{Binding X}"/>
30                                        <TextBlock Text="{Binding Y}"/>
31                                    </TextBlock>
32                                </Ellipse.ToolTip>-->
33                            </Ellipse>
34                        </DataTemplate>
35                    </d3:TemplateMarkerGenerator2>
36                </d3:MarkerChart.MarkerGenerator>
37            </d3:MarkerChart>
38
39            <!--<d3:ViewportListView Name="view">
40                <d3:ViewportListView.ItemTemplate>
41                    <DataTemplate>
42                        <Ellipse d3:ViewportPanel.DataX="{Binding Path=X}" 
43                                 d3:ViewportPanel.DataY="{Binding Path=Y}" 
44                                 Width="10" Height="10" Fill="Yellow" Stroke="Black" 
45                                 >
46                            <Ellipse.ToolTip>
47                                <TextBlock>
48                                    <TextBlock Text="{Binding X}"/>
49                                    <TextBlock Text="{Binding Y}"/>
50                                </TextBlock>
51                            </Ellipse.ToolTip>
52                        </Ellipse>
53                    </DataTemplate>
54                </d3:ViewportListView.ItemTemplate>
55            </d3:ViewportListView>-->
56
57            <d3:CursorCoordinateGraph/>
58
59        </d3:ChartPlotter>
60    </Grid>
61</Window>