WPF 中的 Windows 8 选项卡控件样式
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11747746/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Windows 8 Tab Control Styles in WPF
提问by Parker
I'm trying to get Windows 8 (Metro UI) style tab controls in my application, similar to this. However, the code listed only seems to work in Silverlight. I'm using WPF. Is there any easy way to at least get similar styling? I can do without fancy transitions, but I'd like the tabs to look like the Metro UI ones.
我正在尝试在我的应用程序中获取 Windows 8(Metro UI)样式的选项卡控件,类似于此. 但是,列出的代码似乎只适用于 Silverlight。我正在使用 WPF。有没有什么简单的方法可以至少获得类似的样式?我可以不用花哨的过渡,但我希望选项卡看起来像 Metro UI 的选项卡。
回答by Parker
回答by Filip Skakun
回答by Ibraheem Osama
The Metro Style Application have a built in styles, animation and Controls(FlipView , GridVIew and ListView). Even in Silverlight you'll not be able to use this styles. so if you use WPF or Silverlight you must define your own style to make it similar to this.
Metro 风格应用程序具有内置的样式、动画和控件(FlipView、GridVIew 和 ListView)。即使在 Silverlight 中,您也无法使用这种样式。因此,如果您使用 WPF 或 Silverlight,则必须定义自己的样式以使其与此类似。
So make your application in Metro style(Xaml or HTML) or define your own styles for your tab control(SL or WPF) This post is about the new Metro Style Controls that isn't exist in WPF and Silverlight
因此,使您的应用程序采用 Metro 风格(Xaml 或 HTML)或为您的选项卡控件(SL 或 WPF)定义您自己的样式这篇文章是关于WPF 和 Silverlight 中不存在的新 Metro 风格控件
Thanks
谢谢

