Browse Source

Fixed Styles preview substitute

Nikita Tsukanov 7 years ago
parent
commit
6e1c7e37a8
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/Avalonia.DesignerSupport/DesignWindowLoader.cs

+ 2 - 2
src/Avalonia.DesignerSupport/DesignWindowLoader.cs

@@ -54,7 +54,7 @@ namespace Avalonia.DesignerSupport
                             }
                             }
                         };
                         };
                 }
                 }
-                if (loaded is Application)
+                else if (loaded is Application)
                     control = new TextBlock {Text = "Application can't be previewed in design view"};
                     control = new TextBlock {Text = "Application can't be previewed in design view"};
                 else
                 else
                     control = (Control) loaded;
                     control = (Control) loaded;
@@ -73,4 +73,4 @@ namespace Avalonia.DesignerSupport
             return window;
             return window;
         }
         }
     }
     }
-}
+}