如何使按钮像Visual Studio 2012一样平坦

编程入门 行业动态 更新时间:2024-10-28 01:12:58
本文介绍了如何使按钮像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一样平坦

本文发布于:2023-07-23 07:38:23,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1195208.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:平坦   按钮   Studio   Visual

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!