无窗口wpf应用程序示例?
关于如何开发“无窗口”WPF 应用程序的任何建议、链接或示例应用程序(针对 VS2010)?
那是那些看起来很现代的窗户,边缘似乎没有历史上的镀铬——它们似乎有圆形边缘等......
Any advice or links or sample application (for VS2010) re how to develop a "windowless" WPF application?
That is the ones that look quite modern and don't seem to have the historical window chrome around the edges - they seem to have rounded edges etc...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我写了一个项目,它完全符合你所说的,我们使用了微软的以下项目,
http://code.msdn.microsoft.com/WPFShell
最初,我尝试通过关闭镶边来自己编写它,这不是一个好主意,除非您不想在标准 Windows 方法中拖动窗口。
I wrote a project that did exactly what you are talking about, we used the following project from Microsoft,
http://code.msdn.microsoft.com/WPFShell
Initially I tried writing it myself by turning off the chrome, not a good idea unless you don't want to be able to drag your window around in the standard windows method.
只需删除 StartupUri 并在应用程序启动方法中不要加载窗口:
publicpartialclassApp
{
}
Just remove StartupUri and in the Application Startup method dont load a window:
public partial class App
{
}