如何更改默认的FontSize单位 [英] How to change default FontSize unit
本文介绍了如何更改默认的FontSize单位的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在玩新版本的Visual Studio 2015 (Community)
.
我注意到在XAML设计器中,FontSize
的默认单位限定符是Pt (point)
.
I notice that that in the XAML designer, the default unit qualifier for FontSize
is Pt (point)
.
但是,我想将Px (pixel)
作为默认设置(例如以前的VS版本).
However I want to have Px (pixel)
as a default (like the previous VS editions).
我环顾了VS的设置,但似乎找不到任何更改此选项的选项.
I looked around in the settings of VS, but i can't seem to find any option to change this.
任何人都知道如何更改此设置吗?
Anyone has an idea how to change this?
推荐答案
WPF默认为px.要强制WPF使用其他度量单位,只需将单位缩写附加到FontSize上即可.
WPF defaults to px. To force WPF to use a different unit of measurement, just append the unit abbreviation to the FontSize.
FontSize="24px"
这篇关于如何更改默认的FontSize单位的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文