问题
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