瀏覽代碼

Fixed Styles preview substitute

Nikita Tsukanov 7 年之前
父節點
當前提交
6e1c7e37a8
共有 1 個文件被更改,包括 2 次插入2 次删除
  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"};
                 else
                     control = (Control) loaded;
@@ -73,4 +73,4 @@ namespace Avalonia.DesignerSupport
             return window;
         }
     }
-}
+}