Browse Source

Fixed AllViewsTester

Tig 1 year ago
parent
commit
d6b25d3aa7
1 changed files with 1 additions and 3 deletions
  1. 1 3
      UICatalog/Scenarios/AllViewsTester.cs

+ 1 - 3
UICatalog/Scenarios/AllViewsTester.cs

@@ -478,9 +478,7 @@ public class AllViewsTester : Scenario
 
     private void View_Initialized (object sender, EventArgs e)
     {
-        var view = sender as View;
-
-        if (view is null)
+        if (sender is not View view)
         {
             return;
         }