Browse Source

Merge pull request #2421 from BDisp/v2_background-scenario-visible-fix_2420

Fixes #2420. BackgroundWorkerCollection scenario is badly clearing invisible button.
Tig 2 years ago
parent
commit
9b1a1e7f0e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      UICatalog/Scenarios/BackgroundWorkerCollection.cs

+ 2 - 2
UICatalog/Scenarios/BackgroundWorkerCollection.cs

@@ -327,8 +327,8 @@ namespace UICatalog.Scenarios {
 				};
 				};
 				Add (listView);
 				Add (listView);
 
 
-				start = new Button ("Start") { IsDefault = true };
-				start.Clicked += (s,e) => {
+				start = new Button ("Start") { IsDefault = true, ClearOnVisibleFalse = false };
+				start.Clicked += (s, e) => {
 					Staging = new Staging (DateTime.Now);
 					Staging = new Staging (DateTime.Now);
 					RequestStop ();
 					RequestStop ();
 				};
 				};