This repository has been archived by the owner on Sep 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Window1.xaml
25 lines (25 loc) · 1.59 KB
/
Window1.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
<Window x:Class="SelectingPropertiesToSerialize.Window1" 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="Save & Restore Layout" Height="236" Width="300">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="165" />
<RowDefinition />
</Grid.RowDefinitions>
<dxg:GridControl Name="gridControl1" Loaded="gridControl1_Loaded">
<dxg:GridControl.Columns>
<dxg:GridColumn x:Name="colIssueName" FieldName="IssueName" Visible="True" Width="100" />
<dxg:GridColumn x:Name="colIssueType" FieldName="IssueType" Visible="True" Width="80" />
<dxg:GridColumn x:Name="colPrivate" FieldName="IsPrivate" Visible="False" Width="20">Private</dxg:GridColumn>
</dxg:GridControl.Columns>
<dxg:GridControl.View>
<dxg:TableView AutoWidth="True" />
</dxg:GridControl.View>
</dxg:GridControl>
<StackPanel Orientation="Horizontal" VerticalAlignment="Top" Grid.Row="1" Margin="0,5,0,0">
<Button x:Name="btnSaveLayout" Margin="5,0,5,0" Height="22" Width="90" Click="btnSaveLayout_Click">Save Layout</Button>
<Button x:Name="btnRestoreLayout" Margin="5,0,5,0" Height="22" Width="90" Click="btnRestoreLayout_Click">Restore Layout</Button>
</StackPanel>
</Grid>
</Window>