This repository has been archived by the owner on Dec 21, 2023. It is now read-only.
/
MainWindow.xaml
39 lines (38 loc) · 1.93 KB
/
MainWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
xmlns:CarsDBDataSetTableAdapters="clr-namespace:Lesson3.CarsDBDataSetTableAdapters"
xmlns:local="clr-namespace:Lesson3" xmlns:dxc="http://schemas.devexpress.com/winfx/2008/xaml/charts"
x:Class="Lesson3.MainWindow"
Title="MainWindow" Height="350" Width="525">
<Window.Resources>
<dx:TypedSimpleSource x:Key="TypedSimpleSource" AdapterType="{x:Type CarsDBDataSetTableAdapters:CarsTableAdapter}"
ContextType="{x:Type local:CarsDBDataSet}" Path="Cars">
<dx:DesignDataManager.DesignData>
<dx:DesignDataSettings RowCount="5"/>
</dx:DesignDataManager.DesignData>
</dx:TypedSimpleSource>
</Window.Resources>
<Grid>
<dxc:ChartControl DataSource="{Binding Data, Source={StaticResource TypedSimpleSource}}">
<dxc:ChartControl.CrosshairOptions>
<dxc:CrosshairOptions ShowArgumentLabels="True" ShowValueLine="True" ShowValueLabels="True"/>
</dxc:ChartControl.CrosshairOptions>
<dxc:ChartControl.Legend>
<dxc:Legend/>
</dxc:ChartControl.Legend>
<dxc:XYDiagram2D>
<dxc:XYDiagram2D.AxisX>
<dxc:AxisX2D>
<dxc:AxisX2D.Label>
<dxc:AxisLabel Staggered="True"/>
</dxc:AxisX2D.Label>
</dxc:AxisX2D>
</dxc:XYDiagram2D.AxisX>
<dxc:BarSideBySideSeries2D DisplayName="Cars"
ArgumentDataMember="Model" ValueDataMember="Price"/>
</dxc:XYDiagram2D>
</dxc:ChartControl>
</Grid>
</Window>