Udostępnij za pośrednictwem


UIElement.ProtectedCursor Property

Definition

Gets or sets the cursor that displays when the pointer is over this element. Defaults to null, indicating no change to the cursor.

protected:
 property CoreCursor ^ ProtectedCursor { CoreCursor ^ get(); void set(CoreCursor ^ value); };
protected:
 property InputCursor ^ ProtectedCursor { InputCursor ^ get(); void set(InputCursor ^ value); };
CoreCursor ProtectedCursor();

void ProtectedCursor(CoreCursor value);
InputCursor ProtectedCursor();

void ProtectedCursor(InputCursor value);
protected CoreCursor ProtectedCursor { get; set; }
protected InputCursor ProtectedCursor { get; set; }
Protected Property ProtectedCursor As CoreCursor
Protected Property ProtectedCursor As InputCursor

Property Value

The cursor that displays when the pointer is over this element.

Remarks

If an element and any of its descendant elements have this property set, when the pointer is over the descendent, the descendant's value is used.

A pointer is 'over' an element if it hit-tests to either the element or a descendent element.

An exception to this is if the pointer has been captured using the UIElement.CapturePointer method, which sends pointer input to the capturing element regardless of where it's located. If pointer input is captured to an element or its tree, the pointer is "over" that element.

Note

Even if a child of the element marks a pointer event Handled, the ProtectedCursor property will still be used.

Applies to