Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xamarin/Xamarin.PropertyEditing.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Maupin <ermaup@microsoft.com>2018-12-18 01:14:13 +0300
committerEric Maupin <ermaup@microsoft.com>2018-12-18 01:14:13 +0300
commiteb04127144adbe1d288700d119eadbf62c1c7d36 (patch)
treedb0c1d40df1a087257a0ac09002bbb0bbbe7a204 /Xamarin.PropertyEditing.Windows
parent24f851b9c3abe3cfe86182d2c9151b4ec61c883f (diff)
[Win] Respect host-set arrange mode
Diffstat (limited to 'Xamarin.PropertyEditing.Windows')
-rw-r--r--Xamarin.PropertyEditing.Windows/PropertyEditorPanel.cs5
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;
}
}