Windows 10 中关闭/最小化/缩小按钮的字体系列是什么? [英] What is the font family of the close/minimize/reduce button in Windows 10?

查看:32
本文介绍了Windows 10 中关闭/最小化/缩小按钮的字体系列是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在开发自定义标题栏,即使我们使用的是 Windows 7,我们也需要使用 Windows 10 主题中的关闭/最小化/缩小按钮.

We are developing a custom header bar and we need to use the close/minimize/reduce button from the Windows 10 theme even if we are in windows 7.

我们的方法是使用 Windows 10 中的字体系列.有没有办法获得它?

Our approach was to use the font family from Windows 10. Is there a way to get it?

推荐答案

您应该能够从这里下载 Segoe MDL2 Assets 字体系列,或者只是从 Windows 10 复制 .​​ttf 文件实例:https://www.azfonts.net/families/segoe-mdl2-assets.html

You should be able to download the Segoe MDL2 Assets font family from here or just copy the .ttf file over from a Windows 10 instance: https://www.azfonts.net/families/segoe-mdl2-assets.html

完成此操作后,您应该将 .ttf 文件作为资源添加到您的项目中.然后你可以使用这样的符号:

Once you have done this, you should add the .ttf file to your project as a resource. You can then use the symbols like this:

<!-- Minimize -->
<TextBlock Text="Value="&#xE949;" FontFamily="pack://application:,,,/#Segoe MDL2 Assets" FontSize="10" />

<!-- Maximize -->
<TextBlock Text="Value="&#xE739;" FontFamily="pack://application:,,,/#Segoe MDL2 Assets" FontSize="10" />

<!-- Restore -->
<TextBlock Text="Value="&#xE923;" FontFamily="pack://application:,,,/#Segoe MDL2 Assets" FontSize="10" />

<!-- Close -->
<TextBlock Text="Value="&#xE106;" FontFamily="pack://application:,,,/#Segoe MDL2 Assets" FontSize="10" />

这篇关于Windows 10 中关闭/最小化/缩小按钮的字体系列是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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