Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

WPF converting a string into a FontWeight

$
0
0

Hey guys,

Anybody know how to set 'FontWeight' through a variable?  I have a program that records this (and other) information.  I store the value that is held just as "Bold" or "Normal" and then I want to be able to reload it later. I can't figure out how to convert "Bold" to the fontweight Bold that can be used for a run.  The value will be held in a variable that I need to use during the conversion.  Thanks guys.


Viewing all articles
Browse latest Browse all 18858

Trending Articles