diff --git a/src/Avalonia.DesignerSupport/DesignerAssist.cs b/src/Avalonia.DesignerSupport/DesignerAssist.cs index 3f6a46020f..8787144665 100644 --- a/src/Avalonia.DesignerSupport/DesignerAssist.cs +++ b/src/Avalonia.DesignerSupport/DesignerAssist.cs @@ -115,7 +115,7 @@ namespace Avalonia.DesignerSupport { Children = { - new TextBlock {Text = "Styles can't be edited without Design.PreviewWith. Add"}, + new TextBlock {Text = "Styles can't be previewed without Design.PreviewWith. Add"}, new TextBlock {Text = ""}, new TextBlock {Text = " "}, new TextBlock {Text = ""}, @@ -123,6 +123,8 @@ namespace Avalonia.DesignerSupport } }; } + if (loaded is Application) + control = new TextBlock {Text = "Application can't be previewed in design view"}; else control = (Control) loaded;