This repository has been archived by the owner on Sep 25, 2023. It is now read-only.
/
MainWindow.xaml
50 lines (50 loc) · 3.06 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
40
41
42
43
44
45
46
47
48
49
50
<Window x:Class="DXSample.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="448" Width="803"
xmlns:dxdo="http://schemas.devexpress.com/winfx/2008/xaml/docking"
xmlns:dxlc="http://schemas.devexpress.com/winfx/2008/xaml/layoutcontrol"
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
xmlns:lc="http://schemas.devexpress.com/winfx/2008/xaml/layoutcontrol"
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
xmlns:local="clr-namespace:DXSample">
<Grid>
<Grid.Resources>
<DataTemplate DataType="{x:Type local:ExampleObject}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<StackPanel Orientation="Vertical" Grid.Column="0" Margin="10">
<StackPanel Orientation="Horizontal">
<Label Content="Name : "/>
<TextBlock Text="{Binding Name}"/>
</StackPanel>
<StackPanel Orientation="Horizontal">
<Label Content="Path : "/>
<TextBlock Text="{Binding ImageUri}"/>
</StackPanel>
</StackPanel>
<Image Grid.Column="1" Margin="10" Source="{Binding ImageSource}"/>
</Grid>
</DataTemplate>
</Grid.Resources>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<dxg:GridControl Grid.Column="0" Name="gridControl1" AutoGenerateColumns="AddNew" SelectionMode="Row" AllowDrop="True" MouseMove="gridControl1_MouseMove" PreviewMouseDown="gridControl1_PreviewMouseDown" DragEnter="gridControl1_DragEnter" Drop="gridControl1_Drop">
<dxg:GridControl.Columns>
<dxg:GridColumn FieldName="Name" />
<dxg:GridColumn FieldName="ImageUri" />
<dxg:GridColumn FieldName="ImageSource" EditSettings="{dxe:ImageEditSettings Stretch=UniformToFill, MaxWidth=150}"/>
</dxg:GridControl.Columns>
<dxg:GridControl.View>
<dxg:CardView Name="tableView1" NavigationStyle="Cell" FixedSize="250" MinFixedSize="150" ShowTotalSummary="True" ShowGroupPanel="False" AutoScrollOnSorting="True" />
</dxg:GridControl.View>
</dxg:GridControl>
<dxlc:TileLayoutControl Grid.Column="1" Name="tileLayoutControl1" AllowItemMoving="False" AllowDrop="True" DragScrolling="False" MouseMove="tileLayoutControl1_MouseMove" Drop="tileLayoutControl1_Drop" DragEnter="tileLayoutControl1_DragEnter" PreviewMouseDown="tileLayoutControl1_PreviewMouseDown"/>
</Grid>
</Window>