MahApps 样式的按钮仅显示小写字母
Button with MahApps style show only lower case latters
这是我的按钮:
<Button
Name="btnOk"
Content="OK"
Style="{StaticResource AccentedSquareButtonStyle}"/>
并且 content
在使用此 Style
时始终使用小写字母
你应该使用
Controls:ButtonHelper.PreserveTextCase="True"
防止小写(或其他控件上的大写)。
编辑
Alpha 版本(即将发布的 v1.2.0)发生了变化。现在可以更轻松地更改大小写了。
<!-- possible values are: Normal, Upper and Lower -->
Controls:ControlsHelper.ContentCharacterCasing="Normal"
我同意@punker76 的观点 v1.2.0 现在最新的 v2.4.7,你只能用
<!-- possible values are: Normal, Upper and Lower -->
Controls:ControlsHelper.ContentCharacterCasing="Normal"
如果您想将它用作 属性,您可以像这样使用它
Property="Controls:ControlsHelper.ContentCharacterCasing" Value="Normal"
这是我的按钮:
<Button
Name="btnOk"
Content="OK"
Style="{StaticResource AccentedSquareButtonStyle}"/>
并且 content
在使用此 Style
你应该使用
Controls:ButtonHelper.PreserveTextCase="True"
防止小写(或其他控件上的大写)。
编辑
Alpha 版本(即将发布的 v1.2.0)发生了变化。现在可以更轻松地更改大小写了。
<!-- possible values are: Normal, Upper and Lower -->
Controls:ControlsHelper.ContentCharacterCasing="Normal"
我同意@punker76 的观点 v1.2.0 现在最新的 v2.4.7,你只能用
<!-- possible values are: Normal, Upper and Lower -->
Controls:ControlsHelper.ContentCharacterCasing="Normal"
如果您想将它用作 属性,您可以像这样使用它
Property="Controls:ControlsHelper.ContentCharacterCasing" Value="Normal"