Back to Devexpress

UserLookAndFeel.StyleChanged Event

windowsforms-devexpress-dot-lookandfeel-dot-userlookandfeel-7d84c4c1.md

latest3.9 KB
Original Source

UserLookAndFeel.StyleChanged Event

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

Declaration

csharp
public event EventHandler StyleChanged
vb
Public Event StyleChanged As EventHandler

Event Data

The StyleChanged event's data class is EventArgs.

Remarks

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

csharp
Form2 form2 = new Form2();
td.mainLookAndFeel.StyleChanged += new EventHandler(form2.MainLookAndFeel_StyleChanged);
form2.ShowDialog();

winforms-dashboard-custom-items-extension/CS/CustomItemExtension/CustomItems/SunburstChart/SunburstItemControlProvider.cs#L41

csharp
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

vb
Dim form2 As Form2 = New Form2()
AddHandler td.mainLookAndFeel.StyleChanged, New EventHandler(AddressOf form2.MainLookAndFeel_StyleChanged)
form2.ShowDialog()

winforms-dashboard-custom-items-extension/VB/CustomItemExtension/CustomItems/SunburstChart/SunburstItemControlProvider.vb#L47

vb
AddHandler sunburst.MouseClick, AddressOf Sunburst_MouseClick
AddHandler sunburst.LookAndFeel.StyleChanged, AddressOf SunburstLookAndFeelStyleChanged
UpdateSunburstItemStyle()

See Also

UserLookAndFeel Class

UserLookAndFeel Members

DevExpress.LookAndFeel Namespace