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

/Main/src/Samples/v0.2/PlotterLayout/MainWindow.xaml

#
XAML | 26 lines | 26 code | 0 blank | 0 comment | 0 complexity | 3386575fb9000f1ff3f07f78dd6d4cf7 MD5 | raw file
 1<Window x:Class="PlotterLayoutSample.MainWindow"
 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="Plotter Layout Sample" Height="300" Width="300">
 6    <DockPanel>
 7        <Menu DockPanel.Dock="Top">
 8            <MenuItem Header="Elements">
 9                <MenuItem Name="secondHeader" Header="Extra header" Click="secondHeader_Click" IsChecked="True"/>
10                <MenuItem Name="secondFooter" Header="Extra footer" Click="secondFooter_Click"/>
11            </MenuItem>
12        </Menu>
13        <Grid>
14            <d3:ChartPlotter Name="plotter">
15                <d3:Header>
16                    <TextBlock HorizontalAlignment="Center" FontSize="20">Very simple chart</TextBlock>
17                </d3:Header>
18                <d3:HorizontalAxisTitle>This is horizontal axis</d3:HorizontalAxisTitle>
19                <d3:VerticalAxisTitle>This is vertical axis</d3:VerticalAxisTitle>
20                <d3:Footer>
21                    <TextBlock HorizontalAlignment="Center" FontSize="10" FontStyle="Italic">Footer example</TextBlock>
22                </d3:Footer>
23            </d3:ChartPlotter>
24        </Grid>
25    </DockPanel>
26</Window>