Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
DragEventArgs.GetPosition(Element) Method
Definition
- Namespace:
- Microsoft.Maui.Controls
- Assembly:
- Microsoft.Maui.Controls.dll
- Source:
- DragEventArgs.cs
- Source:
- DragEventArgs.cs
- Source:
- DragEventArgs.cs
- Source:
- DragEventArgs.cs
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.
Gets the location of the drag relative to the specified element.
public:
virtual Nullable<Microsoft::Maui::Graphics::Point> GetPosition(Microsoft::Maui::Controls::Element ^ relativeTo);
public virtual Microsoft.Maui.Graphics.Point? GetPosition(Microsoft.Maui.Controls.Element? relativeTo);
abstract member GetPosition : Microsoft.Maui.Controls.Element -> Nullable<Microsoft.Maui.Graphics.Point>
override this.GetPosition : Microsoft.Maui.Controls.Element -> Nullable<Microsoft.Maui.Graphics.Point>
Public Overridable Function GetPosition (relativeTo As Element) As Nullable(Of Point)
Parameters
- relativeTo
- Element
Element whose position is used to calculate the relative position.
Returns
The point where dragging is occurring relative to relativeTo.
Remarks
If relativeTo is null then the position relative to the screen is returned.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Feedback
Was this page helpful?
