Table of Contents

Class DPFSurfaceSwapChain

Namespace
HelixToolkit.Wpf.SharpDX
Assembly
HelixToolkit.Wpf.SharpDX.dll
public class DPFSurfaceSwapChain : Grid, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient, IAddChild, IRenderCanvas, IDisposable
Inheritance
DPFSurfaceSwapChain
Implements
Inherited Members

Constructors

DPFSurfaceSwapChain(bool, bool)

public DPFSurfaceSwapChain(bool deferredRendering = false, bool attachedToWindow = true)

Parameters

deferredRendering bool
attachedToWindow bool

DPFSurfaceSwapChain(Func<nint, IRenderHost>, bool)

public DPFSurfaceSwapChain(Func<nint, IRenderHost> createRenderHost, bool attachedToWindow = true)

Parameters

createRenderHost Func<nint, IRenderHost>
attachedToWindow bool

Properties

DpiScale

Gets or sets the dpi scale.

public double DpiScale { get; set; }

Property Value

double

The dpi scale.

EnableDpiScale

Gets or sets a value indicating whether [enable dpi scale].

public bool EnableDpiScale { get; set; }

Property Value

bool

true if [enable dpi scale]; otherwise, false.

IncreaseFPS

public bool IncreaseFPS { get; set; }

Property Value

bool

RenderHost

Gets or sets the render host.

public IRenderHost? RenderHost { get; }

Property Value

IRenderHost

The render host.

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Dispose(bool)

protected void Dispose(bool disposing)

Parameters

disposing bool

FindVisualAncestor<T>(DependencyObject?)

public static T? FindVisualAncestor<T>(DependencyObject? obj) where T : DependencyObject

Parameters

obj DependencyObject

Returns

T

Type Parameters

T

OnRenderSizeChanged(SizeChangedInfo)

protected override void OnRenderSizeChanged(SizeChangedInfo sizeInfo)

Parameters

sizeInfo SizeChangedInfo

Events

ExceptionOccurred

Fired whenever an exception occurred on this object.

public event EventHandler<RelayExceptionEventArgs> ExceptionOccurred

Event Type

EventHandler<RelayExceptionEventArgs>

See Also