/
MainWindow.xaml
22 lines (22 loc) · 1.01 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
<Window x:Class="WpfApplication80.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
Title="MainWindow" Height="350" Width="525">
<Grid>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<dxg:GridControl x:Name="grid">
<dxg:GridColumn FieldName="Name"/>
<dxg:GridColumn FieldName="MinValue"/>
<dxg:GridColumn FieldName="MaxValue"/>
<dxg:GridColumn FieldName="Average" UnboundType="Integer" UnboundExpression="([MinValue]+[MaxValue])/2"/>
<dxg:GridControl.View>
<dxg:TableView x:Name="view" AutoWidth="True"/>
</dxg:GridControl.View>
</dxg:GridControl>
<Button Grid.Row="1" Content="Export" Click="Button_Click"/>
</Grid>
</Window>