Hello
I am having trouble in understanding how to used the Application Styling Components. I have seen the sample but I still don't understand it.
I've been told that -in the case of the UltraGrid- I should use App Styling instead of Presets. I would like to know the coding required (in VB) in order to give an UltraGrid the Look & Feel of Office 2007. Should I use an isl file? (I'd rather have the file as an embeded resource). Why the StyleManager object has Properties referring to Office 2007?
Thanks a lot.
I would recommend loading one of the Office2007.isl files into the StyleManager. You could store the file in your application as an embedded resource and then call the overload of StyleManager.Load that takes a stream.
The Office2007 properties on the StyleManager are for using a custom color with the Office2007 look for those control that already support Office2007-style without using an isl.
Thanks. I made it work.
Now, I would like to apply the styling to only the ultragrid instances, since the other controls were manually set to have an Office 2007 Style. How can I accomplish that?
Thanks again.
You can set UseAppStyling to false on all controls except the grids.
Can I modified the isl file in such a way that only grids can be style with it?
No, not really. There's no way to do this without doing something in your application code.
If you don't want to set UseAppStyling, then another way to do it is to assign a StyleSetName to the grids in your application. Then in your application style library, you create a StyleSet with that name and apply the settings you want. Only controls whose StyleSetName matches up will pick up settings from that StyleSet.