Browse Source

Fixed Styles preview substitute

pull/1412/head
Nikita Tsukanov 8 years ago
committed by GitHub
parent
commit
6e1c7e37a8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/Avalonia.DesignerSupport/DesignWindowLoader.cs

4
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;
}
}
}
}

Loading…
Cancel
Save