简体   繁体   English

app.xaml“无法在设计视图中编辑”

[英]app.xaml "cannot be edited in design view"

I am building a wpf form in c#.我正在用 C# 构建一个 wpf 表单。 two hours ago I opened my project and the design view was closed.两个小时前,我打开了我的项目,但设计视图已关闭。 I've tried right clicking the form and pressing "open with...", but no option appears to open it in design view.我试过右键单击表单并按“打开方式...”,但似乎没有选项可以在设计视图中打开它。

The App.xaml then isn't probably the file you wanted to edit. App.xaml可能不是您想要编辑的文件。 If you wanted to change something in a designer, check for your MainWindow.xaml .如果您想更改设计器中的某些内容,请检查您的MainWindow.xaml This is by default the first Window which shows up, after starting your application.默认情况下,这是启动应用程序后显示的第一个Window

For your information: The default Window which opens up at startup can be set in App.xaml with the MainWindow property.供您参考:可以在App.xaml使用MainWindow属性设置在启动时打开的默认Window

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM