I am new the navigating this website and the Infragistics controls and was wondering how I can switch between StyleSets at runtime
I am loading my ISL file on application startup:
Dim defaultTheme As System.IO.Stream = executingAssembly.GetManifestResourceStream("MyApp.Default.isl")
If defaultTheme IsNot Nothing Then
Infragistics.Win.AppStyling.StyleManager.Load(defaultTheme)
End If
I thought maybe this would work, but it does NOT seem to work...
Dim styleLibrary As New Infragistics.Win.AppStyling.Runtime.ApplicationStyleLibrary()
styleLibrary.LoadFromStyleManager()
If String.IsNullOrEmpty(styleLibrary.DefaultStyleSet) Then
styleLibrary.DefaultStyleSet = "White"
Me.BackColor = Color.White
Else
styleLibrary.DefaultStyleSet = Nothing
Me.BackColor = Color.WhiteSmoke
styleLibrary.UpdateStyleManager()