This repository has been archived by the owner on Dec 21, 2023. It is now read-only.
/
MainWindow.xaml
31 lines (31 loc) · 1.8 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
<Window x:Class="DXSample.MainWindow"
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"
xmlns:dxmvvm="http://schemas.devexpress.com/winfx/2008/xaml/mvvm"
xmlns:local="clr-namespace:DXSample"
DataContext="{dxmvvm:ViewModelSource Type=local:CategoryAttributesViewModel}"
dx:ThemeManager.ThemeName="Office2013"
Title="MainWindow" Height="350" Width="525">
<Grid>
<dxprg:PropertyGridControl SelectedObject="{Binding Person}" ExpandCategoriesWhenSelectedObjectChanged="True" ShowProperties="WithPropertyDefinitions">
<dxprg:PropertyGridControl.PropertyDefinitions>
<dxprg:PropertyDefinition Path="FirstName"/>
<dxprg:PropertyDefinition Path="LastName"/>
<dxprg:PropertyDefinition Path="Address" Header="Contact">
<dxprg:PropertyDefinition.ContentTemplate>
<DataTemplate>
<StackPanel>
<dxprg:CellEditorPresenter Path="AddressLine1"/>
<dxprg:CellEditorPresenter Path="AddressLine2"/>
<dxprg:CellEditorPresenter Path="Phone" PathMode="Absolute"/>
</StackPanel>
</DataTemplate>
</dxprg:PropertyDefinition.ContentTemplate>
</dxprg:PropertyDefinition>
</dxprg:PropertyGridControl.PropertyDefinitions>
</dxprg:PropertyGridControl>
</Grid>
</Window>