Click here to Skip to main content
15,886,075 members
Articles / Desktop Programming / WPF

Building a Docking Window Management Solution in WPF

Rate me:
Please Sign up or sign in to vote.
4.28/5 (25 votes)
1 Jan 2011CPOL8 min read 187.4K   15.7K   83  
A docking window solution using WPF as part of Synergy toolkit
#pragma checksum "..\..\..\Windows\WindowsManager.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "F23CD8621A81160035BE704E8D620646"
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:4.0.30319.1
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

using MixModes.Synergy.VisualFramework.Behaviors;
using MixModes.Synergy.VisualFramework.Converters;
using MixModes.Synergy.VisualFramework.Windows;
using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Automation;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Interactivity;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Effects;
using System.Windows.Media.Imaging;
using System.Windows.Media.Media3D;
using System.Windows.Media.TextFormatting;
using System.Windows.Navigation;
using System.Windows.Shapes;


namespace MixModes.Synergy.VisualFramework.Windows {
    
    
    /// <summary>
    /// WindowsManager
    /// </summary>
    public partial class WindowsManager : System.Windows.Controls.UserControl, System.Windows.Markup.IComponentConnector {
        
        
        #line 10 "..\..\..\Windows\WindowsManager.xaml"
        internal MixModes.Synergy.VisualFramework.Windows.WindowsManager UserControl;
        
        #line default
        #line hidden
        
        
        #line 46 "..\..\..\Windows\WindowsManager.xaml"
        internal System.Windows.Controls.Grid LayoutRoot;
        
        #line default
        #line hidden
        
        
        #line 53 "..\..\..\Windows\WindowsManager.xaml"
        internal System.Windows.Controls.StackPanel TopWindowHeaders;
        
        #line default
        #line hidden
        
        
        #line 59 "..\..\..\Windows\WindowsManager.xaml"
        internal System.Windows.Controls.StackPanel LeftWindowHeaders;
        
        #line default
        #line hidden
        
        
        #line 64 "..\..\..\Windows\WindowsManager.xaml"
        internal System.Windows.Controls.StackPanel RightWindowHeaders;
        
        #line default
        #line hidden
        
        
        #line 69 "..\..\..\Windows\WindowsManager.xaml"
        internal System.Windows.Controls.StackPanel BottomWindowHeaders;
        
        #line default
        #line hidden
        
        
        #line 77 "..\..\..\Windows\WindowsManager.xaml"
        internal System.Windows.Controls.DockPanel LeftPinnedWindows;
        
        #line default
        #line hidden
        
        
        #line 82 "..\..\..\Windows\WindowsManager.xaml"
        internal System.Windows.Controls.DockPanel RightPinnedWindows;
        
        #line default
        #line hidden
        
        
        #line 87 "..\..\..\Windows\WindowsManager.xaml"
        internal System.Windows.Controls.DockPanel TopPinnedWindows;
        
        #line default
        #line hidden
        
        
        #line 92 "..\..\..\Windows\WindowsManager.xaml"
        internal System.Windows.Controls.DockPanel BottomPinnedWindows;
        
        #line default
        #line hidden
        
        
        #line 99 "..\..\..\Windows\WindowsManager.xaml"
        internal MixModes.Synergy.VisualFramework.Windows.DocumentContainer DocumentContainer;
        
        #line default
        #line hidden
        
        
        #line 102 "..\..\..\Windows\WindowsManager.xaml"
        internal System.Windows.Controls.DockPanel DockingIllustrationPanel;
        
        #line default
        #line hidden
        
        
        #line 109 "..\..\..\Windows\WindowsManager.xaml"
        internal System.Windows.Controls.DockPanel PopupArea;
        
        #line default
        #line hidden
        
        
        #line 115 "..\..\..\Windows\WindowsManager.xaml"
        internal System.Windows.Controls.Canvas FloatingPanel;
        
        #line default
        #line hidden
        
        
        #line 118 "..\..\..\Windows\WindowsManager.xaml"
        internal System.Windows.Controls.DockPanel DockingPanel;
        
        #line default
        #line hidden
        
        private bool _contentLoaded;
        
        /// <summary>
        /// InitializeComponent
        /// </summary>
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        public void InitializeComponent() {
            if (_contentLoaded) {
                return;
            }
            _contentLoaded = true;
            System.Uri resourceLocater = new System.Uri("/MixModes.Synergy.VisualFramework;component/windows/windowsmanager.xaml", System.UriKind.Relative);
            
            #line 1 "..\..\..\Windows\WindowsManager.xaml"
            System.Windows.Application.LoadComponent(this, resourceLocater);
            
            #line default
            #line hidden
        }
        
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
        internal System.Delegate _CreateDelegate(System.Type delegateType, string handler) {
            return System.Delegate.CreateDelegate(delegateType, this, handler);
        }
        
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
            switch (connectionId)
            {
            case 1:
            this.UserControl = ((MixModes.Synergy.VisualFramework.Windows.WindowsManager)(target));
            return;
            case 2:
            this.LayoutRoot = ((System.Windows.Controls.Grid)(target));
            return;
            case 3:
            this.TopWindowHeaders = ((System.Windows.Controls.StackPanel)(target));
            return;
            case 4:
            this.LeftWindowHeaders = ((System.Windows.Controls.StackPanel)(target));
            return;
            case 5:
            this.RightWindowHeaders = ((System.Windows.Controls.StackPanel)(target));
            return;
            case 6:
            this.BottomWindowHeaders = ((System.Windows.Controls.StackPanel)(target));
            return;
            case 7:
            this.LeftPinnedWindows = ((System.Windows.Controls.DockPanel)(target));
            return;
            case 8:
            this.RightPinnedWindows = ((System.Windows.Controls.DockPanel)(target));
            return;
            case 9:
            this.TopPinnedWindows = ((System.Windows.Controls.DockPanel)(target));
            return;
            case 10:
            this.BottomPinnedWindows = ((System.Windows.Controls.DockPanel)(target));
            return;
            case 11:
            this.DocumentContainer = ((MixModes.Synergy.VisualFramework.Windows.DocumentContainer)(target));
            return;
            case 12:
            this.DockingIllustrationPanel = ((System.Windows.Controls.DockPanel)(target));
            return;
            case 13:
            this.PopupArea = ((System.Windows.Controls.DockPanel)(target));
            return;
            case 14:
            this.FloatingPanel = ((System.Windows.Controls.Canvas)(target));
            return;
            case 15:
            this.DockingPanel = ((System.Windows.Controls.DockPanel)(target));
            return;
            }
            this._contentLoaded = true;
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) MixModes Inc. | Research In Motion
Canada Canada
Ashish worked for Microsoft for a number of years in Microsoft Visual Studio (Architect edition) and Windows Live division as a developer. Before that he was a developer consultant mainly involved in distributed service development / architecture. His main interests are distributed software architecture, patterns and practices and mobile device development.

Currently Ashish serves as a Technical Lead at RIM leading next generation BlackBerry media experience and also runs his own company MixModes Inc. specializing in .NET / WPF / Silverlight technologies. You can visit MixModes at http://mixmodes.com or follow it on Twitter @MixModes

In his free time he is an avid painter, hockey player and enjoys travelling. His blog is at: http://ashishkaila.serveblog.net

Comments and Discussions