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 năm trước cách đây
mục cha
commit
9b1a1e7f0e
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      UICatalog/Scenarios/BackgroundWorkerCollection.cs

+ 2 - 2
UICatalog/Scenarios/BackgroundWorkerCollection.cs

@@ -327,8 +327,8 @@ namespace UICatalog.Scenarios {
 				};
 				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);
 					RequestStop ();
 				};