创建在WPF自定义表单? [英] Creating custom forms in WPF?
问题描述
目前,我正在学习WPF。我真的很喜欢它为止。我喜欢它是多么容易制作出精美的应用程序,并想创建一个具有自定义窗口边框的应用程序。我想为它看起来是这样的:
I'm currently learning WPF. I really am enjoying it so far. I love how easy it is to make great looking apps, and would like to create an app that has a custom window border. I would like for it to look something like this:
我知道我可能只是很容易地改变窗式到没有边界,并从那里,但似乎很像的WinForms。那岂不是更好地刚刚创建从窗口
导出和风格是一类?如果是的话我怎么能做到这一点? !谢谢
I know I could just easily change the Window type to not have a boarder and go from there, but that seems to much like WinForms. Wouldn't it be better to just create a class that derived from Window
and styled it? If so how can I do this? Thanks!
推荐答案
下面是关于自定义窗口铬与WPF一个伟大的文章:
Here's a great article on customizing Window "chrome" with WPF:
这是伴随着一个代码库项目,从中可以下载代码:
It is accompanied by a Code Gallery project from which you can download the code:
<一个HREF =http://code.msdn.microsoft.com/chrome> WPF Chrome浏览器
这篇关于创建在WPF自定义表单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!