Browse Source

Don't try to preview App.xaml

pull/569/head
Nikita Tsukanov 10 years ago
parent
commit
f439c141db
  1. 4
      src/Avalonia.DesignerSupport/DesignerAssist.cs

4
src/Avalonia.DesignerSupport/DesignerAssist.cs

@ -115,7 +115,7 @@ namespace Avalonia.DesignerSupport
{ {
Children = 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 = "<Design.PreviewWith>"}, new TextBlock {Text = "<Design.PreviewWith>"},
new TextBlock {Text = " <Border Padding=20><!-- YOUR CONTROL FOR PREVIEW HERE--></Border>"}, new TextBlock {Text = " <Border Padding=20><!-- YOUR CONTROL FOR PREVIEW HERE--></Border>"},
new TextBlock {Text = "<Design.PreviewWith>"}, new TextBlock {Text = "<Design.PreviewWith>"},
@ -123,6 +123,8 @@ namespace Avalonia.DesignerSupport
} }
}; };
} }
if (loaded is Application)
control = new TextBlock {Text = "Application can't be previewed in design view"};
else else
control = (Control) loaded; control = (Control) loaded;

Loading…
Cancel
Save