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.
EMoscosoCam said: 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.
Setting UseAppStyling property to false on every control except the grid instances is crazy work considering the number of controls you might use on a single form. Here's the easiest way to do what you needed.
//Load the ISL style and only reference its use on ultraGrid1 //You can add the other grids the same way Infragistics.Win.AppStyling.StyleManager.Load("Windows7.isl", true, "Windows7"); ultraGrid1.StyleLibraryName = "Windows7"; //In case you didn't know this about the Office 2007 Look & Feel //The blend color is a pretty neat property to play around with Office2007ColorTable.ColorScheme = Office2007ColorScheme.Black; Office2007ColorTable.CustomBlendColor = Color.Silver;
(Sorry for the C# syntax...and I just realized this was a reply to a 2008 posting, whoops)