windowsforms-devexpress-dot-lookandfeel-dot-userlookandfeel-7d84c4c1.md
Occurs on changing properties of the current UserLookAndFeel object or the parent LookAndFeel specified by the UserLookAndFeel.ParentLookAndFeel member.
Namespace : DevExpress.LookAndFeel
Assembly : DevExpress.Utils.v25.2.dll
NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core
public event EventHandler StyleChanged
Public Event StyleChanged As EventHandler
The StyleChanged event's data class is EventArgs.
The event supports the internal infrastructure. It is mostly used internally to implement updating controls when properties of the UserLookAndFeel object are changed.
The following code snippets (auto-collected from DevExpress Examples) contain references to the StyleChanged event.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
how-to-keep-a-look-and-feel-of-windows-forms-in-sync-e2243/CS/ThreadedSkinning/Form1.cs#L50
Form2 form2 = new Form2();
td.mainLookAndFeel.StyleChanged += new EventHandler(form2.MainLookAndFeel_StyleChanged);
form2.ShowDialog();
sunburst.MouseClick += Sunburst_MouseClick;
sunburst.LookAndFeel.StyleChanged += SunburstLookAndFeelStyleChanged;
UpdateSunburstItemStyle();
how-to-keep-a-look-and-feel-of-windows-forms-in-sync-e2243/VB/ThreadedSkinning/Form1.vb#L47
Dim form2 As Form2 = New Form2()
AddHandler td.mainLookAndFeel.StyleChanged, New EventHandler(AddressOf form2.MainLookAndFeel_StyleChanged)
form2.ShowDialog()
AddHandler sunburst.MouseClick, AddressOf Sunburst_MouseClick
AddHandler sunburst.LookAndFeel.StyleChanged, AddressOf SunburstLookAndFeelStyleChanged
UpdateSunburstItemStyle()
See Also