Note: This document is auto-generated by
scripts/generate_control_reference_docs.py. Do not edit manually.
Avalonia.Controls.WindowBaseAvalonia.ControlsAvalonia.Controlssrc/Avalonia.Controls/WindowBase.csTopLevelcontrolpublic static readonly DirectProperty<WindowBase, bool> IsActiveProperty = AvaloniaProperty.RegisterDirect<WindowBase, bool>(nameof(IsActive), o => o.IsActive);public static readonly DirectProperty<WindowBase, WindowBase?> OwnerProperty = AvaloniaProperty.RegisterDirect<WindowBase, WindowBase?>(nameof(Owner), o => o.Owner);public static readonly StyledProperty<bool> TopmostProperty = AvaloniaProperty.Register<WindowBase, bool>(nameof(Topmost));public WindowBase(IWindowBaseImpl impl) : this(impl, AvaloniaLocator.Current) {public WindowBase(IWindowBaseImpl impl, IAvaloniaDependencyResolver? dependencyResolver) : base(impl, dependencyResolver) {public event EventHandler? Activated;public event EventHandler? Deactivated;public event EventHandler<PixelPointEventArgs>? PositionChanged;public event EventHandler<WindowResizedEventArgs>? Resized;public new IWindowBaseImpl? PlatformImpl => (IWindowBaseImpl?) base.PlatformImpl;public bool IsActive {public new Screens Screens => base.Screenspublic WindowBase? Owner {public bool Topmost {public double DesktopScaling => DesktopScalingOverride ?? PlatformImpl?.DesktopScaling ?? 1;public void Activate() {<WindowBase x:Name="SampleWindowBase" />
using Avalonia.Controls;
var control = new WindowBase();