Xceed Toolkit for Maui v2.0 Documentation
Anchor Property (Popup)


Xceed.Maui.Toolkit Assembly > Xceed.Maui.Toolkit Namespace > Popup Class : Anchor Property
Gets or sets the View that will be used as the Popup's anchor point.
Syntax
'Declaration
 
Public Property Anchor As View
'Usage
 
Dim instance As Popup
Dim value As View
 
instance.Anchor = value
 
value = instance.Anchor
public View Anchor {get; set;}
Remarks

When an Anchor is set, the HorizontalOptionsVerticalOptions properties will be used to position the Popup in relation to said Anchor.

For example, a Popup which sets its Anchor on a Button & has its HorizontalOptionsVerticalOptions properties set to LayoutOptions.End will be positioned at the bottom right of the Button.

Without any Anchor, the Popup will use its parent or the main window as a virtual anchor to position itself, while still using the HorizontalOptionsVerticalOptions properties as guides for its positioning.

Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Popup Class
Popup Members