I want to change FontStyle and FontWeight using c# in my code .
I tried this:
textblock.FontStyle =FontStyle.Normal
and
textblock.FontWeight =FontWeight.Bold
but its not working.
I'd not recommend to do that in code, but if it is necessary:
textblock.FontStyle = Windows.UI.Text.FontStyle.Italic;
textblock.FontWeight = Windows.UI.Text.FontWeights.Bold;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With