ComboBoxArrowThemeFontSize

ComboBoxArrowThemeFontSize

本文介绍了[UWP] [XAML]错误报告:ComboBox和ComboBoxArrowThemeFontSize的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

参考:  https://msdn.microsoft.com/en-us/library/windows/apps/mt299116.aspx


ComboBoxArrowThemeFontSize 被定义为值 21 ,我认为这是12的拼写错误。(我已经确认使用此值解析为值21,因此文档是正确的。)


ComboBox模板在任何地方使用此值,而不是"DropDownGlyph"。设置为
FontSize =" 12"


tl; dr:

< x:Double x:Key =" ComboBoxArrowThemeFontSize"> 21< / x:Double> 

<! - ... - >

< FontIcon x:Name =" DropDownGlyph"
Grid.Row =" 1"
Grid.Column =" 1"
IsHitTestVisible =" False"
Margin =" 0,10,10,10"
Foreground =" {ThemeResource SystemControlForegroundBaseMediumHighBrush}"
FontFamily =" {ThemeResource SymbolThemeFontFamily}"
FontSize =" 12"
Glyph ="&#xE0E5;"
Horizo​​ntalAlignment =" Right"
VerticalAlignment =" Center"
AutomationProperties.AccessibilityView =" Raw" />

我认为这应该是:

< x:Double x:Key =" ComboBoxArrowThemeFontSize"> 12< / X:双> 

<! - ... - >

< FontIcon x:Name =" DropDownGlyph"
Grid.Row =" 1"
Grid.Column =" 1"
IsHitTestVisible =" False"
Margin =" 0,10,10,10"
Foreground =" {ThemeResource SystemControlForegroundBaseMediumHighBrush}"
FontFamily =" {ThemeResource SymbolThemeFontFamily}"
FontSize =" {ThemeResource ComboBoxArrowThemeFontSize}"
Glyph ="&#xE0E5;"
Horizo​​ntalAlignment =" Right"
VerticalAlignment =" Center"
AutomationProperties.AccessibilityView =" Raw" />
解决方案


这篇关于[UWP] [XAML]错误报告:ComboBox和ComboBoxArrowThemeFontSize的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-14 20:11