[DevExpress Support Team: CLONED FROM Q355054: Skin change event]
Hi Ted. in 20.1 this mechanism is now obsolete.
What is the correct way to catch skin change events in 20.1?
Would it be too much trouble to demonstrate how to read both the type (basic, bezier, office etc…) and colour (blue dark, pine light etc…) within this event?
I managed to get this working to return the type and colour, however there is no colour/pallette name the first time the skin is changed for each type:
Visual BasicAddHandler DevExpress.LookAndFeel.UserLookAndFeel.Default.StyleChanged, AddressOf MyStyleChanged
...
Private Sub MyStyleChanged(sender As Object, e As EventArgs)
Dim sTypeName As String = TypeName(sender)
Dim lookAndFeel As DevExpress.LookAndFeel.UserLookAndFeel = CType(sender, DevExpress.LookAndFeel.UserLookAndFeel)
Dim stronglyTypedArgument As DevExpress.LookAndFeel.LookAndFeelChangedEventArgs = CType(e, DevExpress.LookAndFeel.LookAndFeelChangedEventArgs)
Trace.WriteLine("MyStyleChanged: " & stronglyTypedArgument.Reason.ToString & ", " & lookAndFeel.SkinName &
", " & lookAndFeel.ActiveSvgPaletteName)
End Sub
Could you please show me how to get the lookAndFeel.ActiveSvgPaletteName when the style is changed the first time?
Kind Regards, Garry.