WPF - 使用标准按钮创建带有向上和向下箭头的按钮 [英] WPF - Create buttons with up and down arrows using standard buttons

查看:34
本文介绍了WPF - 使用标准按钮创建带有向上和向下箭头的按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用标准按钮创建一些向上和向下按钮背景,但带有黑色箭头.

I want to create some up and down buttons using the standard button background but with black arrows.

使用 WPF 实现此目的的最佳方法是什么??

What is the best way to accomplish this with WPF??

马尔科姆

推荐答案

我发现 Marlett(一种内置于 Windows 的字体)对这类事情很方便.

I find Marlett (a font built into Windows) handy for that sort of thing.

<Button FontFamily="Marlett" FontSize="20" Content="5"/>
<Button FontFamily="Marlett" FontSize="20" Content="6"/>

输出:

这篇关于WPF - 使用标准按钮创建带有向上和向下箭头的按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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