如何为WPF窗口应用样式看起来像Office 2013 [英] How to apply style for WPF window look like office 2013

查看:800
本文介绍了如何为WPF窗口应用样式看起来像Office 2013的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI

我想创建一个窗口样式外观与MSOffice2013相同的WPF应用程序.我不想使用windowsStyle ="None";并且Allowtransparency ="True"如果我将AllowTransparency = True设置为WindowsFormsHost,则不会显示.

I want to create a WPF application with the window style look and feel same as MSOffice2013. I don't want to use windowsStyle="None" and Allowtransparency="True" as WindowsFormsHost will not show if I make AllowTransparency = True.

1.请建议我是否可以在Windows 8 VS2012中创建WPF应用程序以实现相同效果.如果是这样,我是否需要使用任何在Windows 7中具有相同(MSOffice2013)外观的主题或样式?

1.Please suggest me whether i can create WPF application in window 8 VS2012 to achieve the same . if so, do i need to use any themes or styles which will give the same(MSOffice2013) look and feel in windows 7 ???

2.OR可以在Windows7 VS2010本身上实现?

2.OR I can achieve this on Windows7 VS2010 itself ??

请分享所有示例或链接以供参考

Please share any samples or links for reference

注意:我需要在WPF窗口中使用WindowsFormsHost控件.

谢谢



推荐答案

请参阅我的博客文章,以获取有关如何在WPF中创建自定义窗口的示例: http://blog.magnusmontin.net/2013/03/16/how-to-create-a-custom-window-in-wpf/

Please refer to my blog post for an example of how to create a custom window in WPF: http://blog.magnusmontin.net/2013/03/16/how-to-create-a-custom-window-in-wpf/

您可以根据需要在XAML中设置窗口样式.

You can style the window in XAML according to your requirements.


这篇关于如何为WPF窗口应用样式看起来像Office 2013的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆