I have created a WPF application and set style of the controls using styles. I have a problem on some controls such as Label where I have set FontSize
, FontWeight
, FontFamily
etc. All values are working as expected, except FontSize
and FontFamily
don't seem to be working correctly at runtime. (At design time FontSize
and FontFamily
seem to change to the value I have set.)
I have tried to capture the Style of each control at runtime and I found that the values of FontSize
and FontFamily
are correct (same value as I have set).
Anyone have an idea about or experience with this kind of problem?