Class WPFSurface
Represent a control/widget on a WindowSystem.
Implements
Inherited Members
Namespace: Evergine.WPF
Assembly: Evergine.WPF.dll
Syntax
public class WPFSurface : Surface, IDisposable
  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 events dispatcher associated to this surface.
Declaration
public override KeyboardDispatcher KeyboardDispatcher { get; }
  Property Value
| Type | Description | 
|---|---|
| KeyboardDispatcher | 
Overrides
MouseDispatcher
Gets the mouse events dispatcher associated to 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<IntPtr> SurfaceUpdatedAction { get; set; }
  Property Value
| Type | Description | 
|---|---|
| Action<IntPtr> | 
TouchDispatcher
Gets the touch events dispatcher associated to this surface.
Declaration
public override PointerDispatcher TouchDispatcher { get; }
  Property Value
| Type | Description | 
|---|---|
| PointerDispatcher | 
Overrides
Methods
Destroy()
Remove managed resources.
Declaration
protected override void Destroy()