In This Article

StandardMdiWindowControl Class

Represents a WindowControl that is used as the root control of a hosted floating window.

public class StandardMdiWindowControl : WindowControl
Inheritance:
object Visual UIElement FrameworkElement Control ContentControl WindowControl object

Constructors

StandardMdiWindowControl()

Initializes an instance of the StandardMdiWindowControl class.

public StandardMdiWindowControl()

Properties

DockHost

Gets the DockHost that contains this control.

public DockHost DockHost { get; }

Property Value

DockHost:

The DockHost that contains this control.

DockSite

Gets the DockSite that is managing this docking window.

public DockSite DockSite { get; }

Property Value

DockSite:

The DockSite that is managing this docking window.

DockingWindow

Gets the DockingWindow that is wrapped by this control.

public DockingWindow DockingWindow { get; }

Property Value

DockingWindow:

The DockingWindow that is wrapped by this control.

Methods

GetAdjustedBounds(Rect, ResizeOperation)

Returns an adjusted version of the specified bounds, which can provide support for features such as magnetism.

public override Rect GetAdjustedBounds(Rect bounds, ResizeOperation resizeOperation)
Parameter Type Description
bounds Rect

The bounds to examine.

resizeOperation ResizeOperation

The active resize operation.

Returns

Rect:

The adjusted bounds.

OnActivated(RoutedEventArgs)

Called when the window gains focus within.

protected override void OnActivated(RoutedEventArgs e)
Parameter Type Description
e RoutedEventArgs

A RoutedEventArgs that contains the event data.

Remarks

This method has no default implementation. Because an intermediate class in the inheritance might implement this method, we recommend that you call the base implementation in your implementation.

OnClosed(RoutedEventArgs)

Called when the window is about to close.

protected override void OnClosed(RoutedEventArgs e)
Parameter Type Description
e RoutedEventArgs

A RoutedEventArgs that contains the event data.

Remarks

This method has no default implementation. Because an intermediate class in the inheritance might implement this method, we recommend that you call the base implementation in your implementation.

OnContentChanged(object, object)

Occurs when the content changes.

protected override void OnContentChanged(object oldContent, object newContent)
Parameter Type Description
oldContent object

The old content.

newContent object

The new content.

OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs)

Reports that the IsKeyboardFocusWithin property changed.

protected override void OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs e)
Parameter Type Description
e DependencyPropertyChangedEventArgs

A DependencyPropertyChangedEventArgs that contains the event data.

OnLocationChanged(RoutedEventArgs)

Called when the window is moved.

protected override void OnLocationChanged(RoutedEventArgs e)
Parameter Type Description
e RoutedEventArgs

A RoutedEventArgs that contains the event data.

OnStateChanged(RoutedEventArgs)

Called after the window's WindowState property has changed.

protected override void OnStateChanged(RoutedEventArgs e)
Parameter Type Description
e RoutedEventArgs

A RoutedEventArgs that contains the event data.

OnTitleBarMenuOpening(DockingMenuEventArgs)

Called when the title-bar should display a context menu.

protected override void OnTitleBarMenuOpening(DockingMenuEventArgs e)
Parameter Type Description
e DockingMenuEventArgs

A DockingMenuEventArgs that contains the event data.

Remarks

This method has no default implementation. Because an intermediate class in the inheritance might implement this method, we recommend that you call the base implementation in your implementation.

Inherited Members