积极答复者
请教一些关于自定义窗体的问题

问题
答案
-
Hi ZQing,
>>"1.窗体周身边框的阴影是怎么实现的?"
实现阴影效果,我们一般的做法都是在blend中对window的样式进行自定义来实现,就这这个帖子描述的那样:http://stackoverflow.com/questions/13367249/wpf-window-shadow-effect
而如果需要考虑性能问题的话,我建议你可以尝试使用 WPF Shell Integration Library,可以根据这个帖子来尝试一下:http://stackoverflow.com/questions/7369115/maximum-custom-window-loses-drop-shadow-effect
关于“WPF Shell Integration Library ”:http://blogs.msdn.com/b/wpfsdk/archive/2010/02/22/wpf-shell-integration-library-for-net-3-5.aspx
>>"2.拉伸窗体边缘改变窗体尺寸的功能是如何实现的?"
这里你是要完全自定义一个windows窗体,我看到Magnus的这篇博客里完整的介绍了如何自定义窗体,你可以参考一下:http://blog.magnusmontin.net/2013/03/16/how-to-create-a-custom-window-in-wpf/
Best Regards,
Xavier Eoro
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.
- 已编辑 Xavier Xie-MSFTModerator 2015年5月28日 6:04
- 已建议为答案 Leo (Apple) YangModerator 2015年5月29日 9:04
- 已标记为答案 Barry WangModerator 2015年6月1日 9:30
全部回复
-
Hi ZQing,
>>"1.窗体周身边框的阴影是怎么实现的?"
实现阴影效果,我们一般的做法都是在blend中对window的样式进行自定义来实现,就这这个帖子描述的那样:http://stackoverflow.com/questions/13367249/wpf-window-shadow-effect
而如果需要考虑性能问题的话,我建议你可以尝试使用 WPF Shell Integration Library,可以根据这个帖子来尝试一下:http://stackoverflow.com/questions/7369115/maximum-custom-window-loses-drop-shadow-effect
关于“WPF Shell Integration Library ”:http://blogs.msdn.com/b/wpfsdk/archive/2010/02/22/wpf-shell-integration-library-for-net-3-5.aspx
>>"2.拉伸窗体边缘改变窗体尺寸的功能是如何实现的?"
这里你是要完全自定义一个windows窗体,我看到Magnus的这篇博客里完整的介绍了如何自定义窗体,你可以参考一下:http://blog.magnusmontin.net/2013/03/16/how-to-create-a-custom-window-in-wpf/
Best Regards,
Xavier Eoro
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.
- 已编辑 Xavier Xie-MSFTModerator 2015年5月28日 6:04
- 已建议为答案 Leo (Apple) YangModerator 2015年5月29日 9:04
- 已标记为答案 Barry WangModerator 2015年6月1日 9:30