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
| Name | Type | Description |
|---|---|---|
window | Window? | The window. |
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | You cannot unwatch a window that is not yet loaded. or Could not get window handle. |