VisualStyleHelperVisualStylesChanged Event

Occurs when the visual styles have changed. Unlike Control.SystemColorsChanged, this event is raised for the VisualStyle category of the UserPreferenceChanged event, and makes sure that the cached values of RenderWithVisualStyles and HighContrast are always up-to-date. The event is raised from the same thread as the thread of the event subscription. Make sure unsubscribing is done from the same thread as subscribing, otherwise the event may leak memory.

Definition

Namespace: KGySoft.WinForms
Assembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
C#
public static event EventHandler VisualStylesChanged

Value

EventHandler

See Also