UIElement.ProtectedCursor 屬性

定義

取得或設定指標在這個專案上方時所顯示的游標。 預設值為 null,表示資料指標沒有變更。

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

屬性值

指標位於這個專案上方時所顯示的游標。

備註

如果專案及其任何子系元素都已設定這個屬性,則當指標位於子系上方時,就會使用子代的值。

如果指標對元素或子系元素進行點擊測試,則指標為 'over'。

例外狀況是,如果使用 UIElement.CapturePointer 方法擷取指標,它會將指標輸入傳送至擷取專案,而不論它位於何處。 如果指標輸入擷取至元素或其樹狀結構,指標就會是該元素的「上方」。

注意

即使專案的子系標記已 處理指標事件,仍會使用 ProtectedCursor 屬性。

適用於