In This Article

StandardMdiWindowControl Class

Represents a WindowControl that is used as the root control of a standard MDI window.

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

Constructors

StandardMdiWindowControl()

Initializes an instance of the class.

public StandardMdiWindowControl()

Properties

DockHost

The DockHost that contains this control.

public DockHost? DockHost { get; }

Property Value

DockHost

DockSite

The DockSite that is managing this docking window.

public DockSite? DockSite { get; }

Property Value

DockSite

DockingWindow

The DockingWindow that is wrapped by this control.

public DockingWindow? DockingWindow { get; }

Property Value

DockingWindow

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

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

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)

Called when the Content property changes.

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

The old value of the Content property.

newContent object

The new value of the Content property.

OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs?)

Invoked just before the IsKeyboardFocusWithinChanged event is raised by this element. Implement this method to add class handling for this event.

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

A System.Windows.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

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.

OnStateChanged(RoutedEventArgs)

Called after the window's WindowState property has changed.

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

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.

OnTitleBarMenuOpening(DockingMenuEventArgs)

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

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

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

Extension Methods