Note: This document is auto-generated by
scripts/generate_control_reference_docs.py. Do not edit manually.
Avalonia.Controls.Primitives.PopupRootAvalonia.Controls.PrimitivesAvalonia.Controlssrc/Avalonia.Controls/Primitives/PopupRoot.csIDisposable, IHostedVisualTreeRoot, IPopupHost, IStyleHost, WindowBasecontrolpublic static readonly StyledProperty<Transform?> TransformProperty = AvaloniaProperty.Register<PopupRoot, Transform?>(nameof(Transform));public static readonly StyledProperty<bool> WindowManagerAddShadowHintProperty = Popup.WindowManagerAddShadowHintProperty.AddOwner<PopupRoot>();public PopupRoot(TopLevel parent, IPopupImpl impl) : this(parent, impl,null) {public PopupRoot(TopLevel parent, IPopupImpl impl, IAvaloniaDependencyResolver? dependencyResolver) : base(impl, dependencyResolver) {public new IPopupImpl? PlatformImpl => (IPopupImpl?)base.PlatformImpl;public Transform? Transform {public bool WindowManagerAddShadowHint {public TopLevel ParentTopLevel { get; }public void Dispose() {public void ConfigurePosition(Visual target, PlacementMode placement, Point offset, PopupAnchor anchor = PopupAnchor.None, PopupGravity gravity = PopupGravity.None, PopupPositionerConstraintAdjustment constraintAdjustment = PopupPositionerConstraintAdjustment.All, Rect? rect = null) {public void SetChild(Control? control) => Content = control;public void TakeFocus() => PlatformImpl?.TakeFocus();<PopupRoot x:Name="SamplePopupRoot" />
using Avalonia.Controls.Primitives;
var control = new PopupRoot();