Skip to content
This repository was archived by the owner on Sep 25, 2024. It is now read-only.

Commit 94f9056

Browse files
author
Eric Maupin
committed
[core] Add option to autoexpand categories at platform
Fixes #474
1 parent f4273f4 commit 94f9056

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

Xamarin.PropertyEditing/TargetPlatform.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,16 @@ public IReadOnlyCollection<string> AutoExpandGroups
111111
set;
112112
}
113113

114+
/// <summary>
115+
/// Gets or sets whether all groups should be expanded automatically.
116+
/// </summary>
117+
/// <remarks>This takes precedence over <see cref="AutoExpandGroups"/>.</remarks>
118+
public bool AutoExpandAll
119+
{
120+
get;
121+
set;
122+
}
123+
114124
/// <summary>
115125
/// Gets or sets a list of the allowed arrange modes.
116126
/// </summary>

Xamarin.PropertyEditing/ViewModels/PanelViewModel.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ public PanelViewModel (TargetPlatform targetPlatform)
152152
}
153153

154154
ArrangeModes = modes;
155+
AutoExpand = targetPlatform.AutoExpandAll;
155156
}
156157

157158
public event EventHandler ArrangedPropertiesChanged;

0 commit comments

Comments
 (0)