Class WinUICoreWindowMouseDispatcher
Inherited Members
Namespace: Evergine.WinUI
Assembly: Evergine.WinUI.dll
Syntax
public class WinUICoreWindowMouseDispatcher : MouseDispatcher
Constructors
WinUICoreWindowMouseDispatcher(FrameworkElement)
Initializes a new instance of the WinUICoreWindowMouseDispatcher class.
Declaration
public WinUICoreWindowMouseDispatcher(FrameworkElement coreWindow)
Parameters
Type | Name | Description |
---|---|---|
FrameworkElement | coreWindow | The Window associated with this dispatcher. |
Properties
CursorType
Gets the active cursor type. It can be changed by calling the method TrySetCursorType(CursorTypes).
Declaration
public override CursorTypes CursorType { get; }
Property Value
Type | Description |
---|---|
CursorTypes |
Overrides
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
NativeSetCursorPosition(Point)
Sets the cursor position natively.
Declaration
protected override bool NativeSetCursorPosition(Point position)
Parameters
Type | Name | Description |
---|---|---|
Point | position | The new position. |
Returns
Type | Description |
---|---|
bool | True if the operation was successful; false otherwise. |
Overrides
TrySetCursorType(CursorTypes)
Tries to change the mouse cursor type.
Declaration
public override bool TrySetCursorType(CursorTypes cursorType)
Parameters
Type | Name | Description |
---|---|---|
CursorTypes | cursorType | The new cursor type. |
Returns
Type | Description |
---|---|
bool |
|