简体   繁体   English

如何在 VS2015 中运行一个表单?

[英]How Can I Run One Form in VS2015?

How can i run one of my Windows in wpf for seeing or testing without run all project ?如何在不运行所有项目的情况下在 wpf 中运行我的 Windows 之一进行查看或测试? this feature exist in NetBeans (Shift+F6);此功能存在于 NetBeans (Shift+F6) 中;

You can always just run a single project , in fact, thats the default.你总是可以只运行一个项目,事实上,这是默认的。 If for some reason multiple projects are starting, you can change which ones start in the solution property window.如果由于某种原因启动了多个项目,您可以在解决方案属性窗口中更改启动的项目。

You cannot, however, just "run" a WPF window, page, or user control.但是,您不能只“运行”WPF 窗口、页面或用户控件。 The designer will try to show you how it will look with whatever data is initialized in the constructor, but thats as good as you are going to get.设计器将尝试向您展示使用构造函数中初始化的任何数据的外观,但这与您将获得的一样好。

To actually run, you have to run the whole program;要真正运行,您必须运行整个程序; period .期间 Running pieces is not possible.跑件是不可能的。

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

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