0
在MahApps.Metro的1.5版中,Expander
控件的默認樣式默認情況下其標頭中的所有字符均爲大寫。人們如何改變這種行爲?在MahApps.Metro中使用正常情況擴展器控件
在MahApps.Metro的1.5版中,Expander
控件的默認樣式默認情況下其標頭中的所有字符均爲大寫。人們如何改變這種行爲?在MahApps.Metro中使用正常情況擴展器控件
通過this StackOverflow post這與Button
S中的類似問題涉及指導(其行爲類似,但並不完全相同),在source code for the control,和智能感知,事實證明,一個可以修改ControlsHelper.ContentCharacterCasing
取得預期的效果。特別是,以下風格給出與Metro風格相同的Expander
,但是具有正常外殼:
<Style x:Key="MetroExpanderWithNormalCase" TargetType="Expander" BasedOn="{StaticResource MetroExpander}">
<Setter Property="controls:ControlsHelper.ContentCharacterCasing" Value="Normal"/>
</Style>