Share via


PalmRejectionDelayZonePreview.CreateForVisual Method

Definition

Overloads

CreateForVisual(Visual, Rect)

Creates a palm rejection region based on the specified inking panel.

CreateForVisual(Visual, Rect, Visual, Rect)

Creates a palm rejection region based on the specified inking panel and viewport.

CreateForVisual(Visual, Rect)

Creates a palm rejection region based on the specified inking panel.

public:
 static PalmRejectionDelayZonePreview ^ CreateForVisual(Visual ^ inputPanelVisual, Rect inputPanelRect);
/// [Windows.Foundation.Metadata.Overload("CreateForVisual")]
 static PalmRejectionDelayZonePreview CreateForVisual(Visual const& inputPanelVisual, Rect const& inputPanelRect);
[Windows.Foundation.Metadata.Overload("CreateForVisual")]
public static PalmRejectionDelayZonePreview CreateForVisual(Visual inputPanelVisual, Rect inputPanelRect);
function createForVisual(inputPanelVisual, inputPanelRect)
Public Shared Function CreateForVisual (inputPanelVisual As Visual, inputPanelRect As Rect) As PalmRejectionDelayZonePreview

Parameters

inputPanelVisual
Visual

The visual object associated with the inking panel.

inputPanelRect
Rect

The region where palm rejection is to be enabled, relative to the coordinate space of the inputPanelVisual.

Returns

Returns the palm rejection region.

Attributes

Remarks

Use PalmRejectionDelayZonePreview.CreateForVisual(Visual inputPanelVisual, Rect inputPanelRect, Visual viewportVisual, Rect viewportRect) if you need to specify an enclosing viewport for your inking region.

If inputPanelRect changes, you must call PalmRejectionDelayZonePreview.Dispose to release the PalmRejectionDelayZonePreview object and then call CreateForVisual with the updated rect to create a new palm rejection region.

Applies to

CreateForVisual(Visual, Rect, Visual, Rect)

Creates a palm rejection region based on the specified inking panel and viewport.

public:
 static PalmRejectionDelayZonePreview ^ CreateForVisual(Visual ^ inputPanelVisual, Rect inputPanelRect, Visual ^ viewportVisual, Rect viewportRect);
/// [Windows.Foundation.Metadata.Overload("CreateForVisualWithViewportClip")]
 static PalmRejectionDelayZonePreview CreateForVisual(Visual const& inputPanelVisual, Rect const& inputPanelRect, Visual const& viewportVisual, Rect const& viewportRect);
[Windows.Foundation.Metadata.Overload("CreateForVisualWithViewportClip")]
public static PalmRejectionDelayZonePreview CreateForVisual(Visual inputPanelVisual, Rect inputPanelRect, Visual viewportVisual, Rect viewportRect);
function createForVisual(inputPanelVisual, inputPanelRect, viewportVisual, viewportRect)
Public Shared Function CreateForVisual (inputPanelVisual As Visual, inputPanelRect As Rect, viewportVisual As Visual, viewportRect As Rect) As PalmRejectionDelayZonePreview

Parameters

inputPanelVisual
Visual

The visual object associated with the inking panel.

inputPanelRect
Rect

The region where palm rejection is to be enabled, relative to the coordinate space of the inputPanelVisual.

viewportVisual
Visual

The visual object associated with the viewport within which inputPanelVisual is located.

viewportRect
Rect

The viewport that contains the region where palm rejection is to be enabled, relative to the coordinate space of the viewportVisual.

Returns

Returns a PalmRejectionDelayZonePreview object.

Attributes

Remarks

Palm rejection for the specified inking region is deactivated if the region is scrolled out of view within the specified viewport. Palm rejection is automatically reactivated when the region is scrolled back into view.

Use PalmRejectionDelayZonePreview.CreateForVisual(Visual inputPanelVisual, Rect inputPanelRect) if you do not need to specify an enclosing viewport for your inking region.

If either viewportRect or inputPanelRect changes, you must call PalmRejectionDelayZonePreview.Dispose to release the PalmRejectionDelayZonePreview object and then call CreateForVisual with the updated rectangles to create a new palm rejection region.

Applies to