MdiHostBase Class
Represents the base class for a container that hosts docking windows in a MDI (multiple-document interface).
public abstract class MdiHostBase : Control, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient
- Inheritance:
- System.Object System.Windows.Threading.DispatcherObject System.Windows.DependencyObject System.Windows.Media.Visual System.Windows.UIElement System.Windows.FrameworkElement System.Windows.Controls.Control Object
- Derived:
- StandardMdiHost TabbedMdiHost
Constructors
MdiHostBase()
protected MdiHostBase()
Properties
DockHost
Gets the DockHost that contains this control.
DockSite
Gets the DockSite that is managing this control.
public DockSite DockSite { get; }
Property Value
IsEmpty
Gets whether the host is currently empty (doesn't contain any visible documents).
public bool IsEmpty { get; protected set; }
Property Value
- System.Boolean:
true
if the host is currently empty (doesn't contain any visible documents); otherwise,false
. The default value istrue
.
PrimaryWindow
Gets the primary DockingWindow within the host.
public DockingWindow PrimaryWindow { get; }
Property Value
- DockingWindow:
The primary DockingWindow within the host. The default value is
null
.
Methods
GetDocuments()
Returns the list of docking windows within the MDI.
public abstract IList<DockingWindow> GetDocuments()
Returns
- System.Collections.Generic.IList<DockingWindow>:
The list of docking windows within the MDI.
OnApplyTemplate()
Invoked whenever application code or internal processes call ApplyTemplate
.
public override void OnApplyTemplate()
OnDockHostChanged(DockHost, DockHost)
Occurs when the value of the DockHost property has changed.
protected virtual void OnDockHostChanged(DockHost oldValue, DockHost newValue)
Parameter | Type | Description |
---|---|---|
oldValue | DockHost | The old value. |
newValue | DockHost | The new value. |
OnPrimaryWindowChanged(DockingWindow, DockingWindow)
Occurs when the value of the PrimaryWindow property has changed.
protected virtual void OnPrimaryWindowChanged(DockingWindow oldValue, DockingWindow newValue)
Parameter | Type | Description |
---|---|---|
oldValue | DockingWindow | The old value. |
newValue | DockingWindow | The new value. |
Events
PrimaryWindowChanged
Occurs when PrimaryWindow is changed.
public event EventHandler<DockingWindowEventArgs> PrimaryWindowChanged
Event Type
- System.EventHandler<DockingWindowEventArgs>
Fields
IsEmptyProperty
Identifies the IsEmpty dependency property. This field is read-only.
public static readonly DependencyProperty IsEmptyProperty
PrimaryWindowChangedEvent
Identifies the PrimaryWindowChanged routed event. This field is read-only.
public static readonly RoutedEvent PrimaryWindowChangedEvent
PrimaryWindowProperty
Identifies the PrimaryWindow dependency property key. This field is read-only.
public static readonly DependencyProperty PrimaryWindowProperty
Inherited Members
- System.Object.ToString()
- System.Object.Equals(System.Object)
- System.Object.Equals(System.Object, System.Object)
- System.Object.ReferenceEquals(System.Object, System.Object)
- System.Object.GetHashCode()
- System.Object.GetType()
- System.Object.MemberwiseClone()
Extension Methods
- FrameworkElementExtensions.AnimateDoubleProperty(String, Double, Double, Double, Nullable<Double>, Nullable<Double>)
- FrameworkElementExtensions.BindToProperty(DependencyProperty, Object, String, BindingMode, IValueConverter, Object)
- FrameworkElementExtensions.BindToProperty(DependencyProperty, Object, DependencyProperty, BindingMode, IValueConverter, Object)
- FrameworkElementExtensions.GetCurrentSize()