diff options
author | Eric Maupin <ermaup@microsoft.com> | 2019-02-20 23:51:22 +0300 |
---|---|---|
committer | Eric Maupin <ermaup@microsoft.com> | 2019-02-20 23:51:26 +0300 |
commit | 94f90560260b1862dd7ff4a5f85ee9a502757ce0 (patch) | |
tree | 806569c9a19662dc467611bae94b4ffa95e1144c | |
parent | f4273f41a9a221d8baad04604138381b272f8437 (diff) |
[core] Add option to autoexpand categories at platform
Fixes #474
-rw-r--r-- | Xamarin.PropertyEditing/TargetPlatform.cs | 10 | ||||
-rw-r--r-- | Xamarin.PropertyEditing/ViewModels/PanelViewModel.cs | 1 |
2 files changed, 11 insertions, 0 deletions
diff --git a/Xamarin.PropertyEditing/TargetPlatform.cs b/Xamarin.PropertyEditing/TargetPlatform.cs index be136d6..2ccf052 100644 --- a/Xamarin.PropertyEditing/TargetPlatform.cs +++ b/Xamarin.PropertyEditing/TargetPlatform.cs @@ -112,6 +112,16 @@ namespace Xamarin.PropertyEditing } /// <summary> + /// Gets or sets whether all groups should be expanded automatically. + /// </summary> + /// <remarks>This takes precedence over <see cref="AutoExpandGroups"/>.</remarks> + public bool AutoExpandAll + { + get; + set; + } + + /// <summary> /// Gets or sets a list of the allowed arrange modes. /// </summary> public IReadOnlyList<PropertyArrangeMode> ArrangeModes diff --git a/Xamarin.PropertyEditing/ViewModels/PanelViewModel.cs b/Xamarin.PropertyEditing/ViewModels/PanelViewModel.cs index 23bf245..047667d 100644 --- a/Xamarin.PropertyEditing/ViewModels/PanelViewModel.cs +++ b/Xamarin.PropertyEditing/ViewModels/PanelViewModel.cs @@ -152,6 +152,7 @@ namespace Xamarin.PropertyEditing.ViewModels } ArrangeModes = modes; + AutoExpand = targetPlatform.AutoExpandAll; } public event EventHandler ArrangedPropertiesChanged; |