diff options
author | Eric Maupin <ermaup@microsoft.com> | 2018-12-18 01:14:13 +0300 |
---|---|---|
committer | Eric Maupin <ermaup@microsoft.com> | 2018-12-18 01:14:13 +0300 |
commit | eb04127144adbe1d288700d119eadbf62c1c7d36 (patch) | |
tree | db0c1d40df1a087257a0ac09002bbb0bbbe7a204 /Xamarin.PropertyEditing.Windows | |
parent | 24f851b9c3abe3cfe86182d2c9151b4ec61c883f (diff) |
[Win] Respect host-set arrange mode
Diffstat (limited to 'Xamarin.PropertyEditing.Windows')
-rw-r--r-- | Xamarin.PropertyEditing.Windows/PropertyEditorPanel.cs | 5 |
1 files changed, 4 insertions, 1 deletions
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; } } |