Class MDIWindow
This class present window in MDI state.
Inheritance
Implements
Namespace: Syncfusion.Windows.Tools.Controls
Assembly: Syncfusion.Tools.Wpf.dll
Syntax
[SkinType]
[SkinType]
[SkinType]
[SkinType]
[SkinType]
[SkinType]
[SkinType]
[SkinType]
[SkinType]
[SkinType]
[SkinType]
[SkinType]
[SkinType]
[SkinType]
public class MDIWindow : Control, IDisposable
Constructors
MDIWindow(DocumentContainer)
Initializes a new instance of the MDIWindow class.
Declaration
public MDIWindow(DocumentContainer container)
Parameters
Type | Name | Description |
---|---|---|
DocumentContainer | container | The container. |
Fields
ContentProperty
Represents the Content property for the MDI window
Declaration
public static readonly DependencyProperty ContentProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ContentTemplateProperty
Represents the ContentTemplate property for the MDI window
Declaration
public static readonly DependencyProperty ContentTemplateProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ContentTemplateSelectorProperty
Represents the ContentTemplateSelector property for the MDI window
Declaration
public static readonly DependencyProperty ContentTemplateSelectorProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
CornerRadiusProperty
Represents the CornerRadiusProperty property for the MDI window
Declaration
public static readonly DependencyProperty CornerRadiusProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
HasHwndHostProperty
Represents the MDIWindow content has HWNDhost
Declaration
public static readonly DependencyProperty HasHwndHostProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
HeaderBrushProperty
Represents the HeaderBrushProperty property for the MDI window.
Declaration
public static readonly DependencyProperty HeaderBrushProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IsActiveProperty
Represents value that indicate whether this window is active.
Declaration
public static readonly DependencyProperty IsActiveProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IsMaximized
represents the is maximized flag
Declaration
public bool IsMaximized
Field Value
Type |
---|
System.Boolean |
m_layoutPanel
Presents panel that contains current window.
Declaration
public MDILayoutPanel m_layoutPanel
Field Value
Type |
---|
MDILayoutPanel |
Properties
Container
Gets the parent container.
Declaration
protected DocumentContainer Container { get; }
Property Value
Type |
---|
DocumentContainer |
Content
Gets or sets the value of the Content dependency property.
Declaration
public UIElement Content { get; set; }
Property Value
Type |
---|
System.Windows.UIElement |
ContentTemplate
Gets or sets the value of the ContentTemplate dependency property.
Declaration
public DataTemplate ContentTemplate { get; set; }
Property Value
Type |
---|
System.Windows.DataTemplate |
ContentTemplateSelector
Gets or sets the value of the ContentTemplateSelector dependency property.
Declaration
public DataTemplateSelector ContentTemplateSelector { get; set; }
Property Value
Type |
---|
System.Windows.Controls.DataTemplateSelector |
CornerRadius
Gets or sets the value of the CornerRadius dependency property.
Declaration
public CornerRadius CornerRadius { get; set; }
Property Value
Type |
---|
System.Windows.CornerRadius |
HasHwndHost
Gets or sets the HasHwndHost
Declaration
public bool HasHwndHost { get; }
Property Value
Type |
---|
System.Boolean |
HeaderBrush
Gets or sets the value of the HeaderBrush dependency property.
Declaration
public Brush HeaderBrush { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
IsActive
Gets or sets a value indicating whether this instance is active.
Declaration
public bool IsActive { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
IsMinimized
Gets a value indicating whether this MDIWindow is minimized.
Declaration
public bool IsMinimized { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Methods
Dispose()
Declaration
public void Dispose()
GetMDIBounds()
Gets the MDI bounds.
Declaration
public Rect GetMDIBounds()
Returns
Type | Description |
---|---|
System.Windows.Rect | Rect of MDIminimized window |
Intersects(MDIWindow, MDIWindow)
Indicates whether any window intersects with the specified window.
Declaration
public static bool Intersects(MDIWindow window1, MDIWindow window2)
Parameters
Type | Name | Description |
---|---|---|
MDIWindow | window1 | The window1. |
MDIWindow | window2 | The window2. |
Returns
Type | Description |
---|---|
System.Boolean | intersect of windows |
OnApplyTemplate()
Sets DataContext on the child.
Declaration
public override void OnApplyTemplate()
OnContentChanged(DependencyPropertyChangedEventArgs)
Updates property value cache and raises ContentChanged event.
Declaration
protected virtual void OnContentChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnContentTemplateChanged(DependencyPropertyChangedEventArgs)
Updates property value cache and raises ContentTemplateChanged event.
Declaration
protected virtual void OnContentTemplateChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnContentTemplateSelectorChanged(DependencyPropertyChangedEventArgs)
Updates property value cache and raises ContentTemplateSelectorChanged event.
Declaration
protected virtual void OnContentTemplateSelectorChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnCornerRadiusChanged(DependencyPropertyChangedEventArgs)
Updates property value cache and raises CornerRadiusChanged event.
Declaration
protected virtual void OnCornerRadiusChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnHeaderBrushChanged(DependencyPropertyChangedEventArgs)
Updates property value cache and raises HeaderBrushChanged event.
Declaration
protected virtual void OnHeaderBrushChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnIsActiveChanged(DependencyPropertyChangedEventArgs)
Updates property value cache and raises IsActiveChanged event.
Declaration
protected virtual void OnIsActiveChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnMouseDown(MouseButtonEventArgs)
Invoked when an unhandled System.Windows.Input.Mouse.MouseDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
Declaration
protected override void OnMouseDown(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseButtonEventArgs | e | The System.Windows.Input.MouseButtonEventArgs that contains the event data. This event data reports details about the mouse button that was pressed and the handled state. |
OnMouseEnter(MouseEventArgs)
Invoked when an unhandled System.Windows.Input.Mouse.MouseEnter attached event is raised on this element. Implement this method to add class handling for this event.
Declaration
protected override void OnMouseEnter(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseEventArgs | e | The System.Windows.Input.MouseEventArgs that contains the event data. |
Events
ContentChanged
Event that is raised when Content property is changed.
Declaration
public event PropertyChangedCallback ContentChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
ContentTemplateChanged
Event that is raised when Content property is changed.
Declaration
public event PropertyChangedCallback ContentTemplateChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
ContentTemplateSelectorChanged
Event that is raised when Content property is changed.
Declaration
public event PropertyChangedCallback ContentTemplateSelectorChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
CornerRadiusChanged
Event that is raised when CornerRadius property is changed.
Declaration
public event PropertyChangedCallback CornerRadiusChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
HeaderBrushChanged
Event that is raised when HeaderBrush property is changed.
Declaration
public event PropertyChangedCallback HeaderBrushChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
IsActiveChanged
Event that is raised when IsActive property is changed.
Declaration
public event PropertyChangedCallback IsActiveChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |