PopupRoot Class

The root window of a Popup.

Definition

Namespace: Avalonia.Controls.Primitives
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public sealed class PopupRoot : WindowBase, 
	IHostedVisualTreeRoot, IDisposable, IStyleHost, IPopupHost, IFocusScope
Inheritance
Object    AvaloniaObject    Animatable    StyledElement    Visual    Layoutable    Interactive    InputElement    Control    TemplatedControl    ContentControl    TopLevel    WindowBase    PopupRoot
Implements
IPopupHost, IFocusScope, IStyleHost, IHostedVisualTreeRoot, IDisposable

Constructors

PopupRoot(TopLevel, IPopupImpl) Initializes a new instance of the PopupRoot class.
PopupRoot(TopLevel, IPopupImpl, IAvaloniaDependencyResolver) Initializes a new instance of the PopupRoot class.

Properties

ActualThemeVariant
(Inherited from StyledElement)
ActualTransparencyLevel Gets the achieved WindowTransparencyLevel that the platform was able to provide.
(Inherited from TopLevel)
Background Gets or sets the brush used to draw the control's background.
(Inherited from TemplatedControl)
BackgroundSizing Gets or sets how the control's background is drawn relative to the control's border.
(Inherited from TemplatedControl)
BorderBrush Gets or sets the brush used to draw the control's border.
(Inherited from TemplatedControl)
BorderThickness Gets or sets the thickness of the control's border.
(Inherited from TemplatedControl)
Bounds
(Inherited from Visual)
Classes
(Inherited from StyledElement)
ClientSize Gets or sets the client size of the window.
(Inherited from TopLevel)
Clip
(Inherited from Visual)
Clipboard Gets the platform's clipboard implementation
(Inherited from TopLevel)
ClipToBounds
(Inherited from Visual)
Content Gets or sets the content to display.
(Inherited from ContentControl)
ContentTemplate Gets or sets the data template used to display the content of the control.
(Inherited from ContentControl)
ContextFlyout Gets or sets a context flyout to the control
(Inherited from Control)
ContextMenu Gets or sets a context menu to the control.
(Inherited from Control)
CornerRadius Gets or sets the radius of the border rounded corners.
(Inherited from TemplatedControl)
Cursor
(Inherited from InputElement)
DataContext
(Inherited from StyledElement)
DataTemplates Gets or sets the data templates for the control.
(Inherited from Control)
DesiredSize
(Inherited from Layoutable)
DesktopScaling Gets the scaling factor for Window positioning and sizing.
(Inherited from WindowBase)
Effect
(Inherited from Visual)
FlowDirection
(Inherited from Visual)
Focusable
(Inherited from InputElement)
FocusAdorner Gets or sets the control's focus adorner.
(Inherited from Control)
FocusManager
(Inherited from TopLevel)
FontFamily Gets or sets the font family used to draw the control's text.
(Inherited from TemplatedControl)
FontFeatures Gets or sets the font features turned on/off.
(Inherited from TemplatedControl)
FontSize Gets or sets the size of the control's text in points.
(Inherited from TemplatedControl)
FontStretch Gets or sets the font stretch used to draw the control's text.
(Inherited from TemplatedControl)
FontStyle Gets or sets the font style used to draw the control's text.
(Inherited from TemplatedControl)
FontWeight Gets or sets the font weight used to draw the control's text.
(Inherited from TemplatedControl)
Foreground Gets or sets the brush used to draw the control's text and other foreground elements.
(Inherited from TemplatedControl)
FrameSize Gets or sets the total size of the window.
(Inherited from TopLevel)
GestureRecognizers
(Inherited from InputElement)
HasMirrorTransform
(Inherited from Visual)
Height
(Inherited from Layoutable)
HorizontalAlignment
(Inherited from Layoutable)
HorizontalContentAlignment Gets or sets the horizontal alignment of the content within the control.
(Inherited from ContentControl)
InputPane
(Inherited from TopLevel)
InsetsManager
(Inherited from TopLevel)
IsActive Gets a value that indicates whether the window is active.
(Inherited from WindowBase)
IsArrangeValid
(Inherited from Layoutable)
IsEffectivelyEnabled
(Inherited from InputElement)
IsEffectivelyVisible
(Inherited from Visual)
IsEnabled
(Inherited from InputElement)
IsFocused
(Inherited from InputElement)
IsHitTestVisible
(Inherited from InputElement)
IsInitialized
(Inherited from StyledElement)
IsKeyboardFocusWithin
(Inherited from InputElement)
IsLoaded Gets a value indicating whether the control is fully constructed in the visual tree and both layout and render are complete.
(Inherited from Control)
IsMeasureValid
(Inherited from Layoutable)
IsPointerOver
(Inherited from InputElement)
IsTabStop
(Inherited from InputElement)
IsVisible
(Inherited from Visual)
Item
(Inherited from AvaloniaObject)
Item
(Inherited from AvaloniaObject)
KeyBindings
(Inherited from InputElement)
Launcher
(Inherited from TopLevel)
Margin
(Inherited from Layoutable)
MaxHeight
(Inherited from Layoutable)
MaxWidth
(Inherited from Layoutable)
MinHeight
(Inherited from Layoutable)
MinWidth
(Inherited from Layoutable)
Name
(Inherited from StyledElement)
Opacity
(Inherited from Visual)
OpacityMask
(Inherited from Visual)
Owner Gets or sets the owner of the window.
(Inherited from WindowBase)
Padding Gets or sets the padding placed between the border of the control and its content.
(Inherited from TemplatedControl)
Parent
(Inherited from StyledElement)
ParentTopLevel 
PlatformImpl Gets the platform-specific window implementation.
PlatformSettings
(Inherited from TopLevel)
Presenter Gets the presenter from the control's template.
(Inherited from ContentControl)
RendererDiagnostics Gets a value indicating whether the renderer should draw specific diagnostics.
(Inherited from TopLevel)
RenderScaling
(Inherited from TopLevel)
RenderTransform
(Inherited from Visual)
RenderTransformOrigin
(Inherited from Visual)
RequestedThemeVariant Gets or sets the UI theme variant that is used by the control (and its child elements) for resource determination. The UI theme you specify with ThemeVariant can override the app-level ThemeVariant.
(Inherited from TopLevel)
Resources
(Inherited from StyledElement)
Screens Gets platform screens implementation.
(Inherited from WindowBase)
StorageProvider File System storage service used for file pickers and bookmarks.
(Inherited from TopLevel)
StyleKey
(Inherited from StyledElement)
Styles
(Inherited from StyledElement)
TabIndex
(Inherited from InputElement)
Tag Gets or sets a user-defined object attached to the control.
(Inherited from Control)
Template Gets or sets the template that defines the control's appearance.
(Inherited from TemplatedControl)
TemplatedParent
(Inherited from StyledElement)
Theme
(Inherited from StyledElement)
Topmost Gets or sets whether this window appears on top of all other windows
(Inherited from WindowBase)
Transform Gets or sets a transform that will be applied to the popup.
Transitions
(Inherited from Animatable)
TransparencyBackgroundFallback Gets or sets the IBrush that transparency will blend with when transparency is not supported. By default this is a solid white brush.
(Inherited from TopLevel)
TransparencyLevelHint Gets or sets the WindowTransparencyLevel that the TopLevel should use when possible. Accepts multiple values which are applied in a fallback order. For instance, with "Mica, Blur" Mica will be applied only on platforms where it is possible, and Blur will be used on the rest of them. Default value is an empty array or "None".
(Inherited from TopLevel)
UseLayoutRounding
(Inherited from Layoutable)
VerticalAlignment
(Inherited from Layoutable)
VerticalContentAlignment Gets or sets the vertical alignment of the content within the control.
(Inherited from ContentControl)
Width
(Inherited from Layoutable)
WindowManagerAddShadowHint Gets or sets a hint to the window manager that a shadow should be added to the popup.
ZIndex
(Inherited from Visual)

Methods

Activate Activates the window.
(Inherited from WindowBase)
AddHandler(RoutedEvent, Delegate, RoutingStrategies, Boolean)
(Inherited from Interactive)
AddHandler``1(RoutedEventUMP, EventHandlerUMP, RoutingStrategies, Boolean)
(Inherited from Interactive)
ApplyStyling
(Inherited from StyledElement)
ApplyTemplate
(Inherited from TemplatedControl)
Arrange(Rect)
(Inherited from Layoutable)
BeginInit
(Inherited from StyledElement)
Bind(AvaloniaProperty, IBinding)
(Inherited from AvaloniaObject)
Bind(AvaloniaProperty, IObservableObject, BindingPriority)
(Inherited from AvaloniaObject)
Bind``1(DirectPropertyBaseUMP, IObservableUMP)
(Inherited from AvaloniaObject)
Bind``1(DirectPropertyBaseUMP, IObservableBindingValueUMP)
(Inherited from AvaloniaObject)
Bind``1(DirectPropertyBaseUMP, IObservableObject)
(Inherited from AvaloniaObject)
Bind``1(StyledPropertyUMP, IObservableUMP, BindingPriority)
(Inherited from AvaloniaObject)
Bind``1(StyledPropertyUMP, IObservableBindingValueUMP, BindingPriority)
(Inherited from AvaloniaObject)
Bind``1(StyledPropertyUMP, IObservableObject, BindingPriority)
(Inherited from AvaloniaObject)
CheckAccess
(Inherited from AvaloniaObject)
ClearValue(AvaloniaProperty)
(Inherited from AvaloniaObject)
ClearValue``1(AvaloniaPropertyUMP)
(Inherited from AvaloniaObject)
ClearValue``1(DirectPropertyBaseUMP)
(Inherited from AvaloniaObject)
ClearValue``1(StyledPropertyUMP)
(Inherited from AvaloniaObject)
CoerceValue(AvaloniaProperty)
(Inherited from AvaloniaObject)
ConfigurePosition(Visual, PlacementMode, Point, PopupAnchor, PopupGravity, PopupPositionerConstraintAdjustment, NullableRect) 
DisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
EndInit
(Inherited from StyledElement)
Equals(Object)
(Inherited from AvaloniaObject)
Focus(NavigationMethod, KeyModifiers)
(Inherited from InputElement)
GetBaseValue``1(StyledPropertyUMP)
(Inherited from AvaloniaObject)
GetHashCode
(Inherited from AvaloniaObject)
GetTypeGets the Type of the current instance.
(Inherited from Object)
GetValue(AvaloniaProperty)
(Inherited from AvaloniaObject)
GetValue``1(DirectPropertyBaseUMP)
(Inherited from AvaloniaObject)
GetValue``1(StyledPropertyUMP)
(Inherited from AvaloniaObject)
Hide Hides the popup.
(Inherited from WindowBase)
InvalidateArrange
(Inherited from Layoutable)
InvalidateMeasure
(Inherited from Layoutable)
InvalidateVisual
(Inherited from Visual)
IsAnimating(AvaloniaProperty)
(Inherited from AvaloniaObject)
IsSet(AvaloniaProperty)
(Inherited from AvaloniaObject)
Measure(Size)
(Inherited from Layoutable)
RaiseEvent(RoutedEventArgs)
(Inherited from Interactive)
RemoveHandler(RoutedEvent, Delegate)
(Inherited from Interactive)
RemoveHandler``1(RoutedEventUMP, EventHandlerUMP)
(Inherited from Interactive)
Render(DrawingContext)
(Inherited from Visual)
RequestAnimationFrame(ActionTimeSpan) Enqueues a callback to be called on the next animation tick
(Inherited from TopLevel)
RequestPlatformInhibition(PlatformInhibitionType, String) Requests a PlatformInhibitionType to be inhibited. The behavior remains inhibited until the return value is disposed. The available set of PlatformInhibitionTypes depends on the platform. If a behavior is inhibited on a platform where this type is not supported the request will have no effect.
(Inherited from TopLevel)
SetChild(Control) 
SetCurrentValue(AvaloniaProperty, Object)
(Inherited from AvaloniaObject)
SetCurrentValue``1(StyledPropertyUMP, UMP)
(Inherited from AvaloniaObject)
SetValue(AvaloniaProperty, Object, BindingPriority)
(Inherited from AvaloniaObject)
SetValue``1(DirectPropertyBaseUMP, UMP)
(Inherited from AvaloniaObject)
SetValue``1(StyledPropertyUMP, UMP, BindingPriority)
(Inherited from AvaloniaObject)
Show Shows the window.
(Inherited from WindowBase)
TakeFocus 
ToStringReturns a string that represents the current object.
(Inherited from Object)
TryGetPlatformHandle Trys to get the platform handle for the TopLevel-derived control.
(Inherited from TopLevel)
TryGetResource(Object, ThemeVariant, Object)
(Inherited from StyledElement)
UpdateLayout
(Inherited from Layoutable)
VerifyAccess
(Inherited from AvaloniaObject)

Events

Activated Fired when the window is activated.
(Inherited from WindowBase)
ActualThemeVariantChanged
(Inherited from StyledElement)
AttachedToLogicalTree
(Inherited from StyledElement)
AttachedToVisualTree
(Inherited from Visual)
BackRequested Occurs when physical Back Button is pressed or a back navigation has been requested.
(Inherited from TopLevel)
Closed Fired when the window is closed.
(Inherited from TopLevel)
ContextRequested Occurs when the user has completed a context input gesture, such as a right-click.
(Inherited from Control)
DataContextChanged
(Inherited from StyledElement)
Deactivated Fired when the window is deactivated.
(Inherited from WindowBase)
DetachedFromLogicalTree
(Inherited from StyledElement)
DetachedFromVisualTree
(Inherited from Visual)
DoubleTapped
(Inherited from InputElement)
EffectiveViewportChanged
(Inherited from Layoutable)
GotFocus
(Inherited from InputElement)
Holding
(Inherited from InputElement)
Initialized
(Inherited from StyledElement)
KeyDown
(Inherited from InputElement)
KeyUp
(Inherited from InputElement)
LayoutUpdated
(Inherited from Layoutable)
Loaded Occurs when the control has been fully constructed in the visual tree and both layout and render are complete.
(Inherited from Control)
LostFocus
(Inherited from InputElement)
Opened Fired when the window is opened.
(Inherited from TopLevel)
PointerCaptureLost
(Inherited from InputElement)
PointerEntered
(Inherited from InputElement)
PointerExited
(Inherited from InputElement)
PointerMoved
(Inherited from InputElement)
PointerPressed
(Inherited from InputElement)
PointerReleased
(Inherited from InputElement)
PointerWheelChanged
(Inherited from InputElement)
PositionChanged Fired when the window position is changed.
(Inherited from WindowBase)
PropertyChanged
(Inherited from AvaloniaObject)
Resized Occurs when the window is resized.
(Inherited from WindowBase)
ResourcesChanged
(Inherited from StyledElement)
ScalingChanged Gets or sets a method called when the TopLevel's scaling changes.
(Inherited from TopLevel)
SizeChanged Occurs when the bounds (actual size) of the control have changed.
(Inherited from Control)
Tapped
(Inherited from InputElement)
TemplateApplied Raised when the control's template is applied.
(Inherited from TemplatedControl)
TextInput
(Inherited from InputElement)
TextInputMethodClientRequested
(Inherited from InputElement)
Unloaded Occurs when the control is removed from the visual tree.
(Inherited from Control)

Fields

Extension Methods

BringIntoView Tries to bring the control into view.
(Defined by ControlExtensions)
BringIntoView(Rect) Tries to bring the control into view.
(Defined by ControlExtensions)
FindControlT(String) Finds the named control in the scope of the specified control.
(Defined by ControlExtensions)
FindDataTemplate(Object, IDataTemplate) Find a data template that matches a piece of data.
(Defined by DataTemplateExtensions)
GetControlT(String) Finds the named control in the scope of the specified control and throws if not found.
(Defined by ControlExtensions)
GetTemplateChildren
(Defined by TemplateExtensions)

See Also