diff options
-rw-r--r-- | Xamarin.PropertyEditing.Windows.Standalone/MainWindow.xaml | 2 | ||||
-rw-r--r-- | Xamarin.PropertyEditing.Windows/PropertyEditorPanel.cs | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/Xamarin.PropertyEditing.Windows.Standalone/MainWindow.xaml b/Xamarin.PropertyEditing.Windows.Standalone/MainWindow.xaml index c36a3e6..1019440 100644 --- a/Xamarin.PropertyEditing.Windows.Standalone/MainWindow.xaml +++ b/Xamarin.PropertyEditing.Windows.Standalone/MainWindow.xaml @@ -30,6 +30,6 @@ <local:MockedWpfButton Grid.Row="3" Grid.Column="0" Click="Button_Click">Mocked WPF button</local:MockedWpfButton> <Button Grid.Row="4" Grid.Column="0" Click="Button_Click">Actual WPF button</Button> - <xamarinprops:PropertyEditorPanel Name="panel" Grid.Row="1" Grid.RowSpan="4" Grid.Column="1" /> + <xamarinprops:PropertyEditorPanel Name="panel" Grid.Row="1" Grid.RowSpan="4" Grid.Column="1" ArrangeMode="Category" /> </Grid> </Window>
\ No newline at end of file diff --git a/Xamarin.PropertyEditing.Windows/PropertyEditorPanel.cs b/Xamarin.PropertyEditing.Windows/PropertyEditorPanel.cs index 3fa7203..7355e6e 100644 --- a/Xamarin.PropertyEditing.Windows/PropertyEditorPanel.cs +++ b/Xamarin.PropertyEditing.Windows/PropertyEditorPanel.cs @@ -102,7 +102,7 @@ namespace Xamarin.PropertyEditing.Windows this.paneSelector.SelectedItemChanged += OnPaneChanged; OnTargetPlatformChanged(); - if (this.vm.SelectedObjects.Count > 0) + if (this.vm.SelectedObjects.Count > 0 || ArrangeMode != PropertyArrangeMode.Name) OnArrangeModeChanged (ArrangeMode); } @@ -215,6 +215,9 @@ namespace Xamarin.PropertyEditing.Windows itemsSource = new Binding ("ArrangedEditors"); this.items.SetBinding (ItemsControl.ItemsSourceProperty, itemsSource); + + if (this.vm != null) + this.vm.ArrangeMode = newMode; } } |