UIElement.ReleasePointerCaptures 方法

定義

釋放這個專案保留的所有指標擷取。

public:
 virtual void ReleasePointerCaptures() = ReleasePointerCaptures;
void ReleasePointerCaptures();
public void ReleasePointerCaptures();
function releasePointerCaptures()
Public Sub ReleasePointerCaptures ()

備註

因為有一些輸入案例,例如涉及多個指標點的操作,所以Windows 執行階段一次可擷取多個指標。 呼叫 ReleasePointerCapture 會從集合中移除依識別碼識別的特定 指標 ,而 ReleasePointerCaptures 則會清除整個集合。

使指標擷取失效的使用者動作,例如從指標點釋放也會變更擷取狀態。 如需詳細資訊,請參閱 滑鼠互動處理指標輸入

PointerCaptures屬性會公開UIElement目前擷取指標點的檢視。

適用於

另請參閱