Class FocusWindowTransform
- Namespace
- Whim
- Assembly
- Whim.dll
Queue focus for the provided
WindowHandle. If WindowHandle is
default, focus the last focused window. If there is no last focused window, focus the monitor's desktop.
The focus operation will be performed after the transform sequence is executed.public record FocusWindowTransform : Transform<Unit>, IEquatable<Transform<Unit>>, IEquatable<FocusWindowTransform>
- Inheritance
-
FocusWindowTransform
- Implements
- Inherited Members
Examples
context.Store.Dispatch(new FocusWindowTransform(windowHandle));
To focus the last focused window:
context.Store.Dispatch(new FocusWindowTransform());
Constructors
FocusWindowTransform(HWND)
Queue focus for the provided
WindowHandle. If WindowHandle is
default, focus the last focused window. If there is no last focused window, focus the monitor's desktop.
The focus operation will be performed after the transform sequence is executed.public FocusWindowTransform(HWND WindowHandle = default)
Parameters
WindowHandleHWND
Examples
context.Store.Dispatch(new FocusWindowTransform(windowHandle));
To focus the last focused window:
context.Store.Dispatch(new FocusWindowTransform());
Properties
WindowHandle
public HWND WindowHandle { get; init; }