/
MainWindow.xaml
38 lines (38 loc) · 2.2 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
<Window x:Class="InfiniteSourceInMemoryData.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:InfiniteSourceInMemoryData"
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
mc:Ignorable="d"
Title="MainWindow" Height="600" Width="800">
<Grid>
<dxg:GridControl x:Name="grid">
<dxg:GridControl.Columns>
<dxg:GridColumn FieldName="Subject" IsSmart="True" Width="2*"/>
<dxg:GridColumn FieldName="User" IsSmart="True" Width="*"/>
<dxg:GridColumn FieldName="Created" IsSmart="True" Width="*"
AllowSorting="True" AllowedSortOrders="Descending"
AllowedDateTimeFilters="SingleDateRange" FilterPopupMode="DateSmart">
<dxg:GridColumn.EditSettings>
<dxe:DateEditSettings Mask="H:mm MM/dd/yy" MaskUseAsDisplayFormat="True"/>
</dxg:GridColumn.EditSettings>
</dxg:GridColumn>
<dxg:GridColumn FieldName="Votes" IsSmart="True" Width="0.5*"
AllowSorting="True" DefaultSortOrder="Descending"
AllowedBinaryFilters="GreaterOrEqual" FilterPopupMode="Excel"/>
<dxg:GridColumn FieldName="Priority" IsSmart="True" Width="*"
AllowedBinaryFilters="Equals"/>
</dxg:GridControl.Columns>
<dxg:GridControl.TotalSummary>
<dxg:GridSummaryItem SummaryType="Count" Alignment="Right"/>
</dxg:GridControl.TotalSummary>
<dxg:GridControl.View>
<dxg:TableView ColumnSortClearMode="Click"
ShowFixedTotalSummary="True"/>
</dxg:GridControl.View>
</dxg:GridControl>
</Grid>
</Window>