In This Article

DockingWindowDefaultLocationEventArgs Class

Provides event arguments for DockingWindow-related default location events.

public class DockingWindowDefaultLocationEventArgs : DockingWindowEventArgs
Inheritance:
object EventArgs RoutedEventArgs CancelRoutedEventArgs DockingWindowEventArgs object

Constructors

DockingWindowDefaultLocationEventArgs(DockingWindow, DockingWindowState)

Initializes a new instance of the DockingWindowDefaultLocationEventArgs class.

public DockingWindowDefaultLocationEventArgs(DockingWindow window, DockingWindowState state)
Parameter Type Description
window DockingWindow

The DockingWindow that is the focus of this event.

state DockingWindowState

The DockingWindowState in which the window is requesting a default location.

Properties

FloatingLocation

Gets or sets the location to use if ShouldFloat is true.

public Point? FloatingLocation { get; set; }

Property Value

Point?:

The location to use if ShouldFloat is true.

Remarks

Specify a null value to use a default location.

ShouldFloat

Gets or sets whether the window should be floated instead of docking against the Target.

public bool ShouldFloat { get; set; }

Property Value

bool:

true if the window should be floated instead of docking against the Target; otherwise, false.

Side

Gets or sets the optional Side to dock against the Target control.

public Side? Side { get; set; }

Property Value

Side?:

The optional Side to dock against the Target control.

Remarks

Specify a null value to designate an "attach".

State

Gets the DockingWindowState in which the window is requesting a default location.

public DockingWindowState State { get; }

Property Value

DockingWindowState:

The DockingWindowState in which the window is requesting a default location.

Target

Gets or sets the IDockTarget against which to dock.

public IDockTarget Target { get; set; }

Property Value

IDockTarget:

The IDockTarget against which to dock.

Inherited Members