diff options
author | Eric Maupin <me@ermau.com> | 2019-02-26 22:02:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-26 22:02:39 +0300 |
commit | 4899f6947f6d42251ac276aa016b41db5d57d48b (patch) | |
tree | 74d5e8741ba038e909ed86dcbc7ddbd1ddf86dfb | |
parent | 94afbbdb281b229ee35f6d119c856dc84a7aeea8 (diff) | |
parent | 94f90560260b1862dd7ff4a5f85ee9a502757ce0 (diff) |
Merge pull request #539 from xamarin/ermau-autoexpand
[core] Add option to autoexpand categories at platform
-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; |