Ionite
12 months ago
7 changed files with 173 additions and 111 deletions
@ -1,22 +1,33 @@ |
|||||||
<controls:UserControlBase xmlns="https://github.com/avaloniaui" |
<controls:UserControlBase |
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
x:Class="StabilityMatrix.Avalonia.Views.Dialogs.PropertyGridDialog" |
||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
xmlns="https://github.com/avaloniaui" |
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||||
xmlns:mocks="clr-namespace:StabilityMatrix.Avalonia.DesignData" |
xmlns:componentModel="clr-namespace:System.ComponentModel;assembly=System.ObjectModel" |
||||||
xmlns:controls="clr-namespace:StabilityMatrix.Avalonia.Controls" |
xmlns:controls="clr-namespace:StabilityMatrix.Avalonia.Controls" |
||||||
xmlns:vmDialogs="clr-namespace:StabilityMatrix.Avalonia.ViewModels.Dialogs" |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||||
xmlns:pg="clr-namespace:Avalonia.PropertyGrid.Controls;assembly=Avalonia.PropertyGrid" |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||||
d:DataContext="{x:Static mocks:DesignData.PropertyGridViewModel}" |
xmlns:mocks="clr-namespace:StabilityMatrix.Avalonia.DesignData" |
||||||
x:DataType="vmDialogs:PropertyGridViewModel" |
xmlns:vmDialogs="clr-namespace:StabilityMatrix.Avalonia.ViewModels.Dialogs" |
||||||
mc:Ignorable="d" d:DesignWidth="600" d:DesignHeight="450" |
d:DataContext="{x:Static mocks:DesignData.PropertyGridViewModel}" |
||||||
x:Class="StabilityMatrix.Avalonia.Views.Dialogs.PropertyGridDialog"> |
d:DesignHeight="450" |
||||||
|
d:DesignWidth="600" |
||||||
|
x:DataType="vmDialogs:PropertyGridViewModel" |
||||||
|
mc:Ignorable="d"> |
||||||
<Grid> |
<Grid> |
||||||
<controls:BetterPropertyGrid |
<ItemsControl x:Name="MainItemsControl" ItemsSource="{Binding SelectedObjectItemsSource, Mode=OneTime}"> |
||||||
x:Name="MainPropertyGrid" |
<ItemsControl.ItemTemplate> |
||||||
SelectedObject="{Binding SelectedObjectSource, Mode=OneTime}" |
<DataTemplate DataType="componentModel:INotifyPropertyChanged"> |
||||||
ShowStyle="{Binding ShowStyle}" |
<controls:BetterPropertyGrid |
||||||
AllowQuickFilter="False" |
AllowFilter="False" |
||||||
AllowFilter="False" |
AllowQuickFilter="False" |
||||||
ShowTitle="False" /> |
SelectedObject="{Binding Mode=OneTime}" |
||||||
|
IncludedCategories="{Binding $parent[ItemsControl].((vmDialogs:PropertyGridViewModel)DataContext).IncludeCategories, Mode=OneTime, FallbackValue=''}" |
||||||
|
ExcludedCategories="{Binding $parent[ItemsControl].((vmDialogs:PropertyGridViewModel)DataContext).ExcludeCategories, Mode=OneTime, FallbackValue=''}" |
||||||
|
ShowStyle="{Binding $parent[ItemsControl].((vmDialogs:PropertyGridViewModel)DataContext).ShowStyle, Mode=OneTime, FallbackValue=Alphabetic}" |
||||||
|
ShowTitle="False" /> |
||||||
|
</DataTemplate> |
||||||
|
</ItemsControl.ItemTemplate> |
||||||
|
</ItemsControl> |
||||||
|
|
||||||
</Grid> |
</Grid> |
||||||
</controls:UserControlBase> |
</controls:UserControlBase> |
||||||
|
Loading…
Reference in new issue