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 |
||||||
|
x:Class="StabilityMatrix.Avalonia.Views.Dialogs.PropertyGridDialog" |
||||||
|
xmlns="https://github.com/avaloniaui" |
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||||
|
xmlns:componentModel="clr-namespace:System.ComponentModel;assembly=System.ObjectModel" |
||||||
|
xmlns:controls="clr-namespace:StabilityMatrix.Avalonia.Controls" |
||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||||
xmlns:mocks="clr-namespace:StabilityMatrix.Avalonia.DesignData" |
xmlns:mocks="clr-namespace:StabilityMatrix.Avalonia.DesignData" |
||||||
xmlns:controls="clr-namespace:StabilityMatrix.Avalonia.Controls" |
|
||||||
xmlns:vmDialogs="clr-namespace:StabilityMatrix.Avalonia.ViewModels.Dialogs" |
xmlns:vmDialogs="clr-namespace:StabilityMatrix.Avalonia.ViewModels.Dialogs" |
||||||
xmlns:pg="clr-namespace:Avalonia.PropertyGrid.Controls;assembly=Avalonia.PropertyGrid" |
|
||||||
d:DataContext="{x:Static mocks:DesignData.PropertyGridViewModel}" |
d:DataContext="{x:Static mocks:DesignData.PropertyGridViewModel}" |
||||||
|
d:DesignHeight="450" |
||||||
|
d:DesignWidth="600" |
||||||
x:DataType="vmDialogs:PropertyGridViewModel" |
x:DataType="vmDialogs:PropertyGridViewModel" |
||||||
mc:Ignorable="d" d:DesignWidth="600" d:DesignHeight="450" |
mc:Ignorable="d"> |
||||||
x:Class="StabilityMatrix.Avalonia.Views.Dialogs.PropertyGridDialog"> |
|
||||||
<Grid> |
<Grid> |
||||||
|
<ItemsControl x:Name="MainItemsControl" ItemsSource="{Binding SelectedObjectItemsSource, Mode=OneTime}"> |
||||||
|
<ItemsControl.ItemTemplate> |
||||||
|
<DataTemplate DataType="componentModel:INotifyPropertyChanged"> |
||||||
<controls:BetterPropertyGrid |
<controls:BetterPropertyGrid |
||||||
x:Name="MainPropertyGrid" |
|
||||||
SelectedObject="{Binding SelectedObjectSource, Mode=OneTime}" |
|
||||||
ShowStyle="{Binding ShowStyle}" |
|
||||||
AllowQuickFilter="False" |
|
||||||
AllowFilter="False" |
AllowFilter="False" |
||||||
|
AllowQuickFilter="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" /> |
ShowTitle="False" /> |
||||||
|
</DataTemplate> |
||||||
|
</ItemsControl.ItemTemplate> |
||||||
|
</ItemsControl> |
||||||
|
|
||||||
</Grid> |
</Grid> |
||||||
</controls:UserControlBase> |
</controls:UserControlBase> |
||||||
|
Loading…
Reference in new issue