Table of Contents

Class ScreenDuplicationModel

Namespace
HelixToolkit.Wpf.SharpDX
Assembly
HelixToolkit.Wpf.SharpDX.dll

Limitation: Under switchable graphics card setup(Laptop with integrated graphics card and external graphics card), only monitor outputs using integrated graphics card is fully supported. Trying to clone monitor outputs by external graphics card, the clone window must reside in those monitors which is rendered by external graphics card, or error will be occurred. Ref: https://support.microsoft.com/en-us/help/3019314/error-generated-when-desktop-duplication-api-capable-application-is-ru

public class ScreenDuplicationModel : Element3D, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient, IDisposable, IVisible
Inheritance
ScreenDuplicationModel
Implements
Inherited Members
Extension Methods

Constructors

ScreenDuplicationModel()

Initializes a new instance of the ScreenDuplicationModel class.

public ScreenDuplicationModel()

Fields

CaptureRectangleProperty

The screen rectangle property

public static readonly DependencyProperty CaptureRectangleProperty

Field Value

DependencyProperty

DisplayIndexProperty

The display index property

public static readonly DependencyProperty DisplayIndexProperty

Field Value

DependencyProperty

ShowMouseCursorProperty

The show mouse cursor property

public static readonly DependencyProperty ShowMouseCursorProperty

Field Value

DependencyProperty

StretchToFillProperty

The stretch to fill property

public static readonly DependencyProperty StretchToFillProperty

Field Value

DependencyProperty

Properties

CaptureRectangle

Gets or sets the screen rectangle on current display

public Rect CaptureRectangle { get; set; }

Property Value

Rect

The screen rectangle.

DisplayIndex

Gets or sets the display index.

public int DisplayIndex { get; set; }

Property Value

int

The display index.

ShowMouseCursor

Gets or sets a value indicating whether [show mouse cursor].

public bool ShowMouseCursor { get; set; }

Property Value

bool

true if [show mouse cursor]; otherwise, false.

StretchToFill

Gets or sets a value indicating whether [stretch to fill].

public bool StretchToFill { get; set; }

Property Value

bool

true if [stretch to fill]; otherwise, false.

Methods

AssignDefaultValuesToSceneNode(SceneNode)

Assigns the default values to core.

protected override void AssignDefaultValuesToSceneNode(SceneNode core)

Parameters

core SceneNode

The core.

OnCreateSceneNode()

Called when [create scene node].

protected override SceneNode OnCreateSceneNode()

Returns

SceneNode

See Also