1

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?

4

1 回答 1

1

Is it possible that you specified these values some place else that has a higher priority then your style? (eg local property values or triggers)

a code example could clear things up...

于 2009-02-27T11:08:03.763 回答