c# - Button FontWeight doesn't work -


i try set fontweight of button font weight still same.

my button

<button x:name="mybutton"     grid.row="3"     fontweight="bold"     content="something"     padding="16,10,12,12"     fontsize="24"     background="white"     foreground="#400000"     horizontalcontentalignment="left" /> 

how can solve problem?

to set fontweight have set fontweight.
see below i've added property code , set "thin":

for wp7.x page level style override you're doing explicitly need little bit more work:

    <button x:name="mybutton"             grid.row="3"             padding="16,10,12,12"             fontsize="24"             background="white"             horizontalcontentalignment="left" >             <textblock text="something"                        style="{staticresource phonetextnormalstyle}"                         foreground="#400000"                        fontweight="thin" />         </button> 

note i've had set style content , applied fontweight override what's in style.

this (simpler version) work wp8

        <button x:name="mybutton"                 fontweight="thin"                 grid.row="3"                 content="something"                 padding="16,10,12,12"                 fontsize="24"                 background="white"                 foreground="#400000"                 horizontalcontentalignment="left" /> 

Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -