diff options
-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; |