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.
Mike,
I have added an '.isl' file that I added as a resource. I now want to use the file to set the Appstyling.
Here is what I am doing, however s is always nothing:
Dim s As System.IO.Stream = Nothing s = (System.Reflection.Assembly.GetExecutingAssembly()).GetManifestResourceStream("Office2007Blue.isl") If Not s Is Nothing Then Infragistics.Win.AppStyling.StyleManager.Load(s) End If
Can you provide an example?? Or indicate what is wrong above??
Perfect!
That was very easy.
I load the style from the resources in other way. Perhaps this could help you:
Dim objStream As IO.MemoryStream objStream = New IO.MemoryStream(My.Resources.Office2007Blue)Infragistics.Win.AppStyling.StyleManager.Load(objStream)