diff options
Diffstat (limited to 'Xamarin.PropertyEditing.Windows/Themes/PropertyEditorPanelStyle.xaml')
-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> |