In This Article

EditorViewSelectionGripper Class

Represents a gripper that can be dragged to extend the selection via touch interaction.

public class EditorViewSelectionGripper : UIElement, IInputElement, IUIElement, ILogicalTreeNode, IDpiAwareElement, IDisposable
Inheritance:
object MarshalByRefObject MarshalByRefDisposableObject LogicalTreeNodeBase UIElement object
Implements:
IInputElement IUIElement ILogicalTreeNode IDpiAwareElement IDisposable

Constructors

EditorViewSelectionGripper()

Initializes an instance of the class.

public EditorViewSelectionGripper()

Properties

IsForSelectionEnd

Indicates whether the gripper is for the selection end.

public bool IsForSelectionEnd { get; }

Property Value

bool:

true if the gripper is for the selection end; otherwise, false. The default value is true.

Padding

The padding.

public Padding Padding { get; set; }

Property Value

Padding

Visibility

The element's visibility.

public Visibility Visibility { get; }

Property Value

Visibility:

A Visibility that specifies the element's visibility.

Methods

GetCursor(Point)

Returns the Cursor that should be used when the mouse is over the element at the specified Point.

public override Cursor? GetCursor(Point point)
Parameter Type Description
point Point

The Point to examine.

Returns

Cursor

MeasureOverride(Graphics?, Size)

Measures the size in layout required for child elements and determines a size for the element itself.

protected override Size MeasureOverride(Graphics? g, Size availableSize)
Parameter Type Description
g Graphics

The Graphics object to use for measurement.

availableSize Size

The available size that this element can give to child elements. Infinity can be specified as a value to indicate that the element will size to whatever content is available.

Returns

Size:

The size that this element determines it needs during layout, based on its calculations of child element sizes.

Remarks

Element authors should override this method, call Measure(Graphics?, Size) on each visible child element and determine the total size required.

OnRender(PaintEventArgs)

Renders the element.

protected override void OnRender(PaintEventArgs e)
Parameter Type Description
e PaintEventArgs

The event data.

Inherited Members

Extension Methods