WPF

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class MDIWindow

    Show / Hide Table of Contents

    Class MDIWindow

    This class present window in MDI state.

    Inheritance
    System.Object
    MDIWindow
    Implements
    System.IDisposable
    Namespace: Syncfusion.Windows.Tools.Controls
    Assembly: Syncfusion.Tools.Wpf.dll
    Syntax
    [SkinType(SkinVisualStyle = Skin.Default, Type = typeof(DocumentContainer), XamlResource = "/Syncfusion.Tools.WPF;component/Framework/DocumentContainer/Themes/vista.aero.xaml")]
    [SkinType(SkinVisualStyle = Skin.ShinyBlue, Type = typeof(DocumentContainer), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Framework/DocumentContainer/Themes/ShinyBlueStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Metro, Type = typeof(DocumentContainer), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Framework/DocumentContainer/Themes/MetroStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Office2010Black, Type = typeof(DocumentContainer), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Framework/DocumentContainer/Themes/Office2010BlackStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Transparent, Type = typeof(DocumentContainer), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Framework/DocumentContainer/Themes/TransparentStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Office2007Blue, Type = typeof(DocumentContainer), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Framework/DocumentContainer/Themes/Office2007BlueStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Office2007Black, Type = typeof(DocumentContainer), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Framework/DocumentContainer/Themes/Office2007BlackStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Office2007Silver, Type = typeof(DocumentContainer), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Framework/DocumentContainer/Themes/Office2007SilverStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Office2010Blue, Type = typeof(DocumentContainer), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Framework/DocumentContainer/Themes/Office2010BlueStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Office2010Silver, Type = typeof(DocumentContainer), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Framework/DocumentContainer/Themes/Office2010SilverStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Office2003, Type = typeof(DocumentContainer), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Framework/DocumentContainer/Themes/Office2003Style.xaml")]
    [SkinType(SkinVisualStyle = Skin.Blend, Type = typeof(DocumentContainer), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Framework/DocumentContainer/Themes/BlendStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.SyncOrange, Type = typeof(DocumentContainer), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Framework/DocumentContainer/Themes/SyncOrangeStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.ShinyRed, Type = typeof(DocumentContainer), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Framework/DocumentContainer/Themes/ShinyRedStyle.xaml")]
    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 Description
    System.Windows.DependencyProperty

    ContentTemplateProperty

    Represents the ContentTemplate property for the MDI window

    Declaration
    public static readonly DependencyProperty ContentTemplateProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    ContentTemplateSelectorProperty

    Represents the ContentTemplateSelector property for the MDI window

    Declaration
    public static readonly DependencyProperty ContentTemplateSelectorProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    CornerRadiusProperty

    Represents the CornerRadiusProperty property for the MDI window

    Declaration
    public static readonly DependencyProperty CornerRadiusProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    HasHwndHostProperty

    Represents the MDIWindow content has HWNDhost

    Declaration
    public static readonly DependencyProperty HasHwndHostProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    HeaderBrushProperty

    Represents the HeaderBrushProperty property for the MDI window.

    Declaration
    public static readonly DependencyProperty HeaderBrushProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    IsActiveProperty

    Represents value that indicate whether this window is active.

    Declaration
    public static readonly DependencyProperty IsActiveProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    IsMaximized

    represents the is maximized flag

    Declaration
    public bool IsMaximized
    Field Value
    Type Description
    System.Boolean

    m_layoutPanel

    Presents panel that contains current window.

    Declaration
    public MDILayoutPanel m_layoutPanel
    Field Value
    Type Description
    MDILayoutPanel

    Properties

    Container

    Gets the parent container.

    Declaration
    protected DocumentContainer Container { get; }
    Property Value
    Type Description
    DocumentContainer

    Content

    Gets or sets the value of the Content dependency property.

    Declaration
    public UIElement Content { get; set; }
    Property Value
    Type Description
    System.Windows.UIElement

    ContentTemplate

    Gets or sets the value of the ContentTemplate dependency property.

    Declaration
    public DataTemplate ContentTemplate { get; set; }
    Property Value
    Type Description
    System.Windows.DataTemplate

    ContentTemplateSelector

    Gets or sets the value of the ContentTemplateSelector dependency property.

    Declaration
    public DataTemplateSelector ContentTemplateSelector { get; set; }
    Property Value
    Type Description
    System.Windows.Controls.DataTemplateSelector

    CornerRadius

    Gets or sets the value of the CornerRadius dependency property.

    Declaration
    public CornerRadius CornerRadius { get; set; }
    Property Value
    Type Description
    System.Windows.CornerRadius

    HasHwndHost

    Gets or sets the HasHwndHost

    Declaration
    public bool HasHwndHost { get; }
    Property Value
    Type Description
    System.Boolean

    HeaderBrush

    Gets or sets the value of the HeaderBrush dependency property.

    Declaration
    public Brush HeaderBrush { get; set; }
    Property Value
    Type Description
    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

    true if this instance is active; otherwise, false.

    IsMinimized

    Gets a value indicating whether this MDIWindow is minimized.

    Declaration
    public bool IsMinimized { get; }
    Property Value
    Type Description
    System.Boolean

    true if minimized; otherwise, false.

    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 Description
    System.Windows.PropertyChangedCallback

    ContentTemplateChanged

    Event that is raised when Content property is changed.

    Declaration
    public event PropertyChangedCallback ContentTemplateChanged
    Event Type
    Type Description
    System.Windows.PropertyChangedCallback

    ContentTemplateSelectorChanged

    Event that is raised when Content property is changed.

    Declaration
    public event PropertyChangedCallback ContentTemplateSelectorChanged
    Event Type
    Type Description
    System.Windows.PropertyChangedCallback

    CornerRadiusChanged

    Event that is raised when CornerRadius property is changed.

    Declaration
    public event PropertyChangedCallback CornerRadiusChanged
    Event Type
    Type Description
    System.Windows.PropertyChangedCallback

    HeaderBrushChanged

    Event that is raised when HeaderBrush property is changed.

    Declaration
    public event PropertyChangedCallback HeaderBrushChanged
    Event Type
    Type Description
    System.Windows.PropertyChangedCallback

    IsActiveChanged

    Event that is raised when IsActive property is changed.

    Declaration
    public event PropertyChangedCallback IsActiveChanged
    Event Type
    Type Description
    System.Windows.PropertyChangedCallback

    Implements

    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved