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

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

问题描述

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



我们的方法是从Windows 10使用字体系列。有没有办法得到它?

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



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

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

<! - 最大化 - >
< TextBlock Text =Value =&#xE739; FontFamily =pack:// application:,,, /#Segoe MDL2 AssetsFontSize =10/>

<! - 恢复 - >
< TextBlock Text =Value =&#xE923;FontFamily =pack:// application:,,, /#Segoe MDL2 AssetsFontSize =10/>

<! - 关闭 - >
< TextBlock Text =Value =&#xE106; FontFamily =pack:// application:,,, /#Segoe MDL2 AssetsFontSize =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.

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

解决方案

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

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中的close / minimize / reduce按钮的字体系列是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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