Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Button with MahApps style show only lower case latters

This is my Button:

<Button
    Name="btnOk"
    Content="OK"
    Style="{StaticResource AccentedSquareButtonStyle}"/>

And the content is always with lower case latter when using this Style

like image 359
berry wer Avatar asked Jul 26 '15 14:07

berry wer


Video Answer


1 Answers

You should use

Controls:ButtonHelper.PreserveTextCase="True"

to prevent lower case (or upper case on other controls).

EDIT

There is a change in the Alpha release (the upcoming v1.2.0). It's now possible to change the case much more easier.

<!-- possible values are: Normal, Upper and Lower -->
Controls:ControlsHelper.ContentCharacterCasing="Normal"
like image 145
punker76 Avatar answered Sep 30 '22 02:09

punker76