How to change default FontSize unit

試著忘記壹切 提交于 2019-12-11 12:36:00

问题


I'm playing around in the new version of Visual Studio 2015 (Community).

I notice that that in the XAML designer, the default unit qualifier for FontSize is Pt (point).

However I want to have Px (pixel) as a default (like the previous VS editions).

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?


回答1:


WPF defaults to px. To force WPF to use a different unit of measurement, just append the unit abbreviation to the FontSize.

FontSize="24px"


来源:https://stackoverflow.com/questions/31683775/how-to-change-default-fontsize-unit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!