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 <me@ermau.com>2019-02-26 22:02:39 +0300
committerGitHub <noreply@github.com>2019-02-26 22:02:39 +0300
commit4899f6947f6d42251ac276aa016b41db5d57d48b (patch)
tree74d5e8741ba038e909ed86dcbc7ddbd1ddf86dfb /Xamarin.PropertyEditing
parent94afbbdb281b229ee35f6d119c856dc84a7aeea8 (diff)
parent94f90560260b1862dd7ff4a5f85ee9a502757ce0 (diff)
Merge pull request #539 from xamarin/ermau-autoexpand
[core] Add option to autoexpand categories at platform
Diffstat (limited to 'Xamarin.PropertyEditing')
-rw-r--r--Xamarin.PropertyEditing/TargetPlatform.cs10
-rw-r--r--Xamarin.PropertyEditing/ViewModels/PanelViewModel.cs1
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;