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.
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.
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
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.
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?
Out of curiosity, what programming language / environment are you using?
The intellisense in Visual Studio will typically give you the Enum type automatically and even type it out for you so you don't have to worry about it. Barring that, you can simply mouse over the property name and it will tell you the type in a tooltip.
This really shouldn't be all that difficult. :)
column.AutoCompleteMode = Infragistics.Win.AutoCompleteMode.SuggestAppend;
The equivalent of AutoEdit = False would be AutoCompleteMode.None.
The equivalent of AutoEdit - True is probabaly AutoCompleteMode.SuggestAppend.
Mike, your suggestion for handling AutoEdit = false worked successfully. However, now I'm confronted with the following:
if grdRates.DisplayLayout.Rows[0].Cells[Convert.ToInt32(RateColumns.esoldrate)].Column.AutoEdit == true) { grdRates.DisplayLayout.Rows[0].Cells[Convert.ToInt32(RateColumns.esoldrate)].Column.AutoEdit = false; grdRates.ActiveCell = grdRates.Rows[0].Cells[Convert.ToInt32(RateColumns.esoldrate)]; grdRates.DisplayLayout.Rows[0].Cells[Convert.ToInt32(RateColumns.esoldrate)].Column.AutoEdit = true;}else{ grdRates.ActiveCell = grdRates.Rows[0].Cells[Convert.ToInt32(RateColumns.esoldrate)];}
I can change the Autoedit=false ok, but not the other two.
What's the best way to convert these 2 lines?
Thanks. Chuck
Well, the equivalent of AutoEdit = false, is probably AutoCompleteMode.None.
SuggestAppend tries to match what the user typed in and then appends the rests of the matching value. That's pretty much the standard on most combo boxes.
Using C#, Visual Studio 2005.
Yes, I saw the 5 suggestions (Append, Default, None, Suggest, SuggestAppend) after the
Infragistics.Win.
AutoCompleteMode. , but because the line of code being replaced was
.AutoEdit = false;
I was looking for a boolean type parameter.
What will SuggestAppend do?
Thanks again.