本文介绍了如何使按钮像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>
请在此处查看: msdn.microsoft/en-us/library/cc278069%28v=vs.95%29。 aspx [ ^ ] 这是如何更改模板的完整示例。
Please check over here: msdn.microsoft/en-us/library/cc278069%28v=vs.95%29.aspx[^] This is a full example how to alter the template.
看看这些样式 矩形平面3d边框 平面3d按钮样式
更多推荐
如何使按钮像Visual Studio 2012一样平坦
发布评论