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.
DockSite
The DockSite that is managing this docking window.
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 | 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
- WindowControl.CanCloseProperty
- WindowControl.CornerRadiusProperty
- WindowControl.ContextContentProperty
- WindowControl.ContextContentTemplateProperty
- WindowControl.ContextContentTemplateSelectorProperty
- WindowControl.HasCloseButtonProperty
- WindowControl.HasDropShadowProperty
- WindowControl.HasIconProperty
- WindowControl.HasMaximizeButtonProperty
- WindowControl.HasMinimizeButtonProperty
- WindowControl.HasRestoreButtonProperty
- WindowControl.HasTitleBarProperty
- WindowControl.IconProperty
- WindowControl.IsActiveProperty
- WindowControl.IsCloseButtonVisibleProperty
- WindowControl.IsMaximizeButtonVisibleProperty
- WindowControl.IsMaximizedFrameVisibleProperty
- WindowControl.IsMinimizeButtonVisibleProperty
- WindowControl.IsMovingProperty
- WindowControl.IsReadOnlyProperty
- WindowControl.IsResizingProperty
- WindowControl.IsRestoreButtonVisibleProperty
- WindowControl.LeftProperty
- WindowControl.ReadOnlyContextContentTemplateProperty
- WindowControl.ResizeModeProperty
- WindowControl.RestoredBoundsProperty
- WindowControl.ShadowElevationProperty
- WindowControl.TitleProperty
- WindowControl.TitleBarFontWeightProperty
- WindowControl.TopProperty
- WindowControl.WindowStateProperty
- WindowControl.ActivatedEvent
- WindowControl.ClosedEvent
- WindowControl.ClosingEvent
- WindowControl.DeactivatedEvent
- WindowControl.DragMovedEvent
- WindowControl.DragMovingEvent
- WindowControl.DragResizedEvent
- WindowControl.DragResizingEvent
- WindowControl.LocationChangedEvent
- WindowControl.OpenedEvent
- WindowControl.StateChangedEvent
- WindowControl.TitleBarDoubleTappedEvent
- WindowControl.TitleBarMenuOpeningEvent
- WindowControl.OnGotKeyboardFocus(KeyboardFocusChangedEventArgs)
- WindowControl.OnLostKeyboardFocus(KeyboardFocusChangedEventArgs)
- WindowControl.Activate()
- WindowControl.Close()
- WindowControl.DragMove(InputPointerButtonEventArgs)
- WindowControl.HitTestResizeOperation(Point)
- WindowControl.OnApplyTemplate()
- WindowControl.OnCreateAutomationPeer()
- WindowControl.Show()
- WindowControl.ToggleWindowState()
- WindowControl.OnClosing(CancelRoutedEventArgs)
- WindowControl.OnDeactivated(RoutedEventArgs)
- WindowControl.OnDragMoved(RoutedEventArgs)
- WindowControl.OnDragMoving(CancelRoutedEventArgs)
- WindowControl.OnDragResized(RoutedEventArgs)
- WindowControl.OnDragResizing(CancelRoutedEventArgs)
- WindowControl.OnOpened(RoutedEventArgs)
- WindowControl.OnTitleBarDoubleTapped(CancelRoutedEventArgs)
- WindowControl.CanClose
- WindowControl.CloseCommand
- WindowControl.ContextContent
- WindowControl.ContextContentTemplate
- WindowControl.ContextContentTemplateSelector
- WindowControl.CornerRadius
- WindowControl.HasCloseButton
- WindowControl.HasDropShadow
- WindowControl.HasIcon
- WindowControl.HasMaximizeButton
- WindowControl.HasMinimizeButton
- WindowControl.HasRestoreButton
- WindowControl.HasTitleBar
- WindowControl.Icon
- WindowControl.IsActive
- WindowControl.IsCloseButtonVisible
- WindowControl.IsMaximizeButtonVisible
- WindowControl.IsMaximizedFrameVisible
- WindowControl.IsMinimizeButtonVisible
- WindowControl.IsMoving
- WindowControl.IsReadOnly
- WindowControl.IsResizing
- WindowControl.IsRestoreButtonVisible
- WindowControl.Left
- WindowControl.MaximizeCommand
- WindowControl.MinimizeCommand
- WindowControl.ReadOnlyContextContentTemplate
- WindowControl.ResizeMode
- WindowControl.RestoreCommand
- WindowControl.RestoredBounds
- WindowControl.ShadowElevation
- WindowControl.Title
- WindowControl.TitleBarFontWeight
- WindowControl.Top
- WindowControl.WindowState
- WindowControl.Activated
- WindowControl.Closed
- WindowControl.Closing
- WindowControl.Deactivated
- WindowControl.DragMoved
- WindowControl.DragMoving
- WindowControl.DragResized
- WindowControl.DragResizing
- WindowControl.LocationChanged
- WindowControl.Opened
- WindowControl.StateChanged
- WindowControl.TitleBarDoubleTapped
- WindowControl.TitleBarMenuOpening