Skip to content

SystemThemeWatcher.UnWatch(Window?) method

Defined in

Type: SystemThemeWatcher Namespace: CrissCross.WPF.UI.Appearance Assembly: CrissCross.WPF.UI.dll

Applies to

net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net481

public static void UnWatch(Window? window)

Summary: Unwatches the window and removes the hook to receive messages from the system.

Parameters

NameTypeDescription
windowWindow?The window.

Exceptions

TypeCondition
System.InvalidOperationExceptionYou cannot unwatch a window that is not yet loaded. or Could not get window handle.