Class WPFSurface
Represents a control/widget on a WindowsSystem.
Inherited Members
Namespace: Evergine.WPF
Assembly: Evergine.WPF.dll
Syntax
public class WPFSurface : Surface
Constructors
WPFSurface(uint, uint)
Initializes a new instance of the WPFSurface class.
Declaration
public WPFSurface(uint width, uint height)
Parameters
Type | Name | Description |
---|---|---|
uint | width | Window width. |
uint | height | Window height. |
Properties
IsLoaded
Gets a value indicating whether this surface is loaded.
Declaration
public bool IsLoaded { get; }
Property Value
Type | Description |
---|---|
bool |
KeyboardDispatcher
Gets the keyboard event dispatcher associated with this surface.
Declaration
public override KeyboardDispatcher KeyboardDispatcher { get; }
Property Value
Type | Description |
---|---|
KeyboardDispatcher |
Overrides
MouseDispatcher
Gets the mouse event dispatcher associated with this surface.
Declaration
public override MouseDispatcher MouseDispatcher { get; }
Property Value
Type | Description |
---|---|
MouseDispatcher |
Overrides
NativeControl
Gets the native WPF framework element.
Declaration
public FrameworkElement NativeControl { get; }
Property Value
Type | Description |
---|---|
FrameworkElement |
NativeWindow
Gets the native WPF Window.
Declaration
public Window NativeWindow { get; }
Property Value
Type | Description |
---|---|
Window |
OverrideFrontBufferAvailability
Gets or sets a value indicating whether the Evergine app must keep rendering even if the front buffer is not available in EvergineD3D11Image.
Declaration
public bool OverrideFrontBufferAvailability { get; set; }
Property Value
Type | Description |
---|---|
bool |
SurfaceUpdatedAction
Gets or sets Render action.
Declaration
public Action<nint> SurfaceUpdatedAction { get; set; }
Property Value
Type | Description |
---|---|
Action<nint> |
TouchDispatcher
Gets the touch events dispatcher associated with this surface.
Declaration
public override PointerDispatcher TouchDispatcher { get; }
Property Value
Type | Description |
---|---|
PointerDispatcher |
Overrides
Methods
Destroy()
Removes managed resources.
Declaration
protected override void Destroy()