How can I change the FontStyle
in the code-behind in WPF. I tried this:
listBoxItem.FontStyle = new FontStyle("Italic");
and I got error, any idea?
It was FontStyles.Italic
... Use the FontStyles
enum to set the value for FontStyle
listBoxItem.FontStyle = FontStyles.Italic;
Try this FontStyles.Italic
listBoxItem.FontStyle = FontStyles.Italic;
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