Skip to content

Commit 67714fb

Browse files
committed
Select all checkbox not showing correct state to start with, panel visibility not available early on in control lifecycle.
1 parent bda4f9d commit 67714fb

2 files changed

Lines changed: 21 additions & 19 deletions

File tree

core/SelectionList.Designer.cs

Lines changed: 18 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/SelectionList.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ public partial class SelectionList : UserControl
1414
private int totalItems;
1515
private int checkedItems;
1616
private bool checkChangedEnabled = true;
17+
private bool selectionEnabled = true;
1718

1819
public event EventHandler<SelectionListSelectionChangedEventArgs> SelectionChanged;
1920

@@ -192,7 +193,7 @@ public bool SelectionEnabled
192193
{
193194
get
194195
{
195-
return this.panelSelectAll.Visible;
196+
return selectionEnabled;
196197
}
197198
set
198199
{
@@ -203,6 +204,7 @@ public bool SelectionEnabled
203204
}
204205

205206
this.panelSelectAll.Visible = value;
207+
selectionEnabled = value;
206208
}
207209
}
208210

0 commit comments

Comments
 (0)