Hi,
Can anybody tell me how the UseOsThemes works? I couldn't find any documentation for this property.
It's been a very frustrating experience using the AppStylist; not to mention there's no design time support - what you see is not quite what you gonna get. Everything looks perfect when I run my app using WinXP theme but then the look and feel changed when I switch to Windows Classic. I thought AppStylist was supposed to maintain the styling and consistent look of the app.
Many thanks.
Hi again, now I need to replace AutoEdit = false with AutoCompleteMode. It doesn't like "=false" and there is no DefaultBoolean.
Can you help please?
Excellent - this worked. Thank for the quick response Mike!
Hi Chuck,
The reason the property was changed and the old property was made obsolete was so that we could change the type. UseOsThemes is not a bool, it's a DefaultableBoolean. So you have to set it to DefaultableBoolean.False.
Before converting my app from using Infragistics v6 to v9, it was using
this.FNBRate.SupportThemes = false;
After reading your note above, I changed it to
this
.FNBRate.UseOsThemes = false;
However, the uild doesn't like the value of false. Any suggestions?
Thanks.
Chuck
UseOsThemes determines whether or not the control draws using the operating system themes. If you are using OS themes, then the controls will draw using the operating system themes, so they will look different on different operating systems.
When you create a new StyleSet in AppStylist, the very first thing it does is prompts you with a dialog asking you if you want to turn off themes, because if you do not, some of the property settings will not work at all and you will not get a consistent look to your application.
When you choose to turn off themes, what it does it modifies the Base role and sets the ThemedElementAlpha to Transparent. This will turn off themes for all controls with one setting.