-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMainWindow.xaml
28 lines (26 loc) · 1.62 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
<Window x:Class="PropertyGrid_AutoGeneratingPropertyGridItem.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:PropertyGrid_AutoGeneratingPropertyGridItem"
xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
mc:Ignorable="d" WindowStartupLocation="CenterScreen"
Title="MainWindow" Height="400" Width="500">
<Grid x:Name="LayoutRoot" Background="White" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
<syncfusion:PropertyGrid SelectedObject="{Binding IsAsync=True, Path=SelectedEmployee}"
SortDirection="{x:Null}"
ButtonPanelVisibility="Visible"
DescriptionPanelVisibility="Visible"
x:Name="propertyGrid1"
Margin="20">
<syncfusion:PropertyGrid.DataContext>
<local:ViewModel></local:ViewModel>
</syncfusion:PropertyGrid.DataContext>
<i:Interaction.Behaviors>
<local:EventToCommandBehavior PassArguments="true" Event="AutoGeneratingPropertyGridItem" Command="{Binding Path=AutoGeneratingPropertyGridItemEventCommand}" />
</i:Interaction.Behaviors>
</syncfusion:PropertyGrid>
</Grid>
</Window>