In This Article

FloatingWindowOpeningEventArgs Class

Provides event arguments for floating window opening events.

public class FloatingWindowOpeningEventArgs : RoutedEventArgs
Inheritance:
object EventArgs RoutedEventArgs object

Constructors

FloatingWindowOpeningEventArgs(DockHost)

Initializes an instance of the class.

public FloatingWindowOpeningEventArgs(DockHost dockHost)
Parameter Type Description
dockHost DockHost

The DockHost that will be the child of the floating window.

Properties

DockHost

The DockHost that will be the child of the floating window.

public DockHost DockHost { get; }

Property Value

DockHost

DockHostChild

The child Avalonia.Controls.Control of the DockHost.

public Control? DockHostChild { get; }

Property Value

Control

Remarks

The Child property isn't populated when drag previews are used. This property always provides access to the element that will become the DockHost child in those scenarios.

Size

The size of the floating window.

public Size Size { get; set; }

Property Value

Size

Remarks

This property is initialized to the default size and can be adjusted as appropriate.

Inherited Members

Extension Methods