diff options
author | Eric Maupin <ermaup@microsoft.com> | 2018-11-16 22:45:53 +0300 |
---|---|---|
committer | Eric Maupin <ermaup@microsoft.com> | 2018-12-11 00:07:27 +0300 |
commit | f22ae3a071a71de08754838f255a396c20d02f1a (patch) | |
tree | 3bd073bdd5a340bf970cbe5cb3360aed55a4bbc9 /Xamarin.PropertyEditing.Windows | |
parent | 6bcf516b780bf4b29a89bf124c612ef4d4ab5023 (diff) |
[Win] Support uncommon properties
Diffstat (limited to 'Xamarin.PropertyEditing.Windows')
-rw-r--r-- | Xamarin.PropertyEditing.Windows/Themes/PropertyEditorPanelStyle.xaml | 31 |
1 files changed, 23 insertions, 8 deletions
diff --git a/Xamarin.PropertyEditing.Windows/Themes/PropertyEditorPanelStyle.xaml b/Xamarin.PropertyEditing.Windows/Themes/PropertyEditorPanelStyle.xaml index a2053b8..b479b1d 100644 --- a/Xamarin.PropertyEditing.Windows/Themes/PropertyEditorPanelStyle.xaml +++ b/Xamarin.PropertyEditing.Windows/Themes/PropertyEditorPanelStyle.xaml @@ -133,14 +133,29 @@ </Style> <DataTemplate x:Key="PropertyGroupTemplate"> - <local:CategoryExpander Header="{Binding Key,Mode=OneTime}" Style="{StaticResource TreeExpanderStyle}"> - <ItemsControl Style="{StaticResource PropertyListStyle}" ItemsSource="{Binding}"> - <ItemsControl.Template> - <ControlTemplate> - <ItemsPresenter /> - </ControlTemplate> - </ItemsControl.Template> - </ItemsControl> + <local:CategoryExpander Header="{Binding Category,Mode=OneTime}" Style="{StaticResource TreeExpanderStyle}"> + <Grid> + <Grid.RowDefinitions> + <RowDefinition Height="Auto" /> + <RowDefinition Height="Auto" /> + </Grid.RowDefinitions> + <ItemsControl Grid.Row="0" Style="{StaticResource PropertyListStyle}" ItemsSource="{Binding Editors,Mode=OneTime}"> + <ItemsControl.Template> + <ControlTemplate> + <ItemsPresenter /> + </ControlTemplate> + </ItemsControl.Template> + </ItemsControl> + <Expander Grid.Row="1" Visibility="{Binding HasUncommonElements,Converter={StaticResource BoolToVisibilityConverter}}" Style="{StaticResource AdvancedPropertiesExpander}"> + <ItemsControl Grid.Row="0" Style="{StaticResource PropertyListStyle}" ItemsSource="{Binding UncommonEditors,Mode=OneTime}"> + <ItemsControl.Template> + <ControlTemplate> + <ItemsPresenter /> + </ControlTemplate> + </ItemsControl.Template> + </ItemsControl> + </Expander> + </Grid> </local:CategoryExpander> </DataTemplate> |