UIElement.InputHitTest(Point) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the input element within the current element that is at the specified coordinates, relative to the current element's origin.
public:
System::Windows::IInputElement ^ InputHitTest(System::Windows::Point point);
public System.Windows.IInputElement InputHitTest (System.Windows.Point point);
member this.InputHitTest : System.Windows.Point -> System.Windows.IInputElement
Public Function InputHitTest (point As Point) As IInputElement
Parameters
- point
- Point
The offset coordinates within this element.
Returns
The element child that is located at the given position.
Remarks
IInputElement is returned as the return type, because that type is a common interface for both UIElement and ContentElement. You can then cast the return type appropriately, or use the interface instance for certain members that are defined by the IInputElement interface.
This method typically is not called from your application code. Calling this method is only appropriate if you intend to re-implement a substantial amount of the low level input features that are already present, such as recreating mouse device logic.
IContentHost contracts an InputHitTest method with the same signature, which some elements choose to implement explicitly.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기