/
MainWindow.xaml
25 lines (25 loc) · 1.09 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
<dx:DXWindow
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:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
xmlns:dxprg="http://schemas.devexpress.com/winfx/2008/xaml/propertygrid"
dx:ThemeManager.ThemeName="Office2013"
x:Class="DXSample.MainWindow"
x:Name="win"
Title="MainWindow"
Height="600"
Width="525">
<Window.Resources>
<DataTemplate x:Key="ImageTemplate">
<dxprg:PropertyDefinition Path="Photo" AllowExpanding="Never">
<dxprg:PropertyDefinition.CellTemplate>
<DataTemplate>
<dxe:ImageEdit Name="PART_Editor"/>
</DataTemplate>
</dxprg:PropertyDefinition.CellTemplate>
</dxprg:PropertyDefinition>
</DataTemplate>
</Window.Resources>
<dxprg:PropertyGridControl SelectedObject="{Binding Path=.}" ExpandCategoriesWhenSelectedObjectChanged="True"/>
</dx:DXWindow>