如何使按钮像Visual Studio 2012一样平坦 [英] How Do I Make Button Flat Like Visual Studio 2012

查看:101
本文介绍了如何使按钮像Visual Studio 2012一样平坦的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我为我的项目创建了一个自定义窗口框架,并想知道如何使按钮平整像IDE Visual studio那样按钮是扁平的不像3D我觉得它与外观有关,我的来源在下面。



Hi i created a custom window frame for my project and wondering how do i make the button flat like the IDE Visual studio where the buttons are flat no like 3D i think its something got to do with appearance my source is below.

<Button x:Name="PART_WindowCaptionMinimizeButton"
Visibility="{TemplateBinding ResizeMode, Converter={StaticResource MinimizeVisibilityConverter}}"
Content="_"
Margin="0,0,4,0"/>

推荐答案

您应该更改按钮模板。建议你在
You should alter your button template. Suggest you do that under
<window.resources>



请在此处查看:

http://msdn.microsoft.com/en-us/library/cc278069%28v=vs.95%29。 aspx [ ^ ]

这是如何更改模板的完整示例。


Please check over here:
http://msdn.microsoft.com/en-us/library/cc278069%28v=vs.95%29.aspx[^]
This is a full example how to alter the template.


看看这些样式



矩形平面3d边框



平面3d按钮样式


这篇关于如何使按钮像Visual Studio 2012一样平坦的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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