Windows 10中的close / minimize / reduce按钮的字体系列是什么? [英] What is the font family of the close/minimize/reduce button in 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="" FontFamily="pack://application:,,,/#Segoe MDL2 Assets" FontSize="10" />
<!-- Maximize -->
<TextBlock Text="Value="" FontFamily="pack://application:,,,/#Segoe MDL2 Assets" FontSize="10" />
<!-- Restore -->
<TextBlock Text="Value="" FontFamily="pack://application:,,,/#Segoe MDL2 Assets" FontSize="10" />
<!-- Close -->
<TextBlock Text="Value="" FontFamily="pack://application:,,,/#Segoe MDL2 Assets" FontSize="10" />
这篇关于Windows 10中的close / minimize / reduce按钮的字体系列是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!