From 6e1c7e37a84270fed27ebf86c2ba38620969175e Mon Sep 17 00:00:00 2001 From: Nikita Tsukanov Date: Tue, 27 Feb 2018 19:59:40 +0300 Subject: [PATCH] Fixed Styles preview substitute --- src/Avalonia.DesignerSupport/DesignWindowLoader.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Avalonia.DesignerSupport/DesignWindowLoader.cs b/src/Avalonia.DesignerSupport/DesignWindowLoader.cs index 9ad2a216b4..5235beee0f 100644 --- a/src/Avalonia.DesignerSupport/DesignWindowLoader.cs +++ b/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; } } -} \ No newline at end of file +}