Click here to Skip to main content
11,706,007 members (59,907 online)
Click here to Skip to main content
Add your own
alternative version

WPF Docking Library

, 17 Jul 2007 CPOL 563.3K 17K 286
A WPF library to easily integrate Windows docking features in applications like VS
source.zip
DockingLibrary
DockingLibrary
bin
Debug
Release
ClassDiagram1.cd
icons
DockBottom.PNG
DockLeft.PNG
DockPane.PNG
DockRight.PNG
DockTop.PNG
Ritaglio.shs
Thumbs.db
images
DockBottom.PNG
DockLeft.PNG
DockPane.PNG
DockRight.PNG
DockTop.PNG
obj
Debug
Refactor
TempPE
themes
Release
Refactor
TempPE
themes
Properties
Settings.settings
themes
DockingLibraryDemo
bin
Debug
Release
Icons
props.ico
view_remove.ico
view_tree.ico
obj
Debug
TempPE
Release
TempPE
Properties
Settings.settings
using System;
using System.Collections.Generic;
using System.Text;

namespace DockingLibrary
{
    public enum SplitOrientation
    { 
        Horizontal,
        Vertical
    }
        
    class DockPaneGroup : IDockPane
    {
        public readonly IDockPane First;
        public readonly IDockPane Second;
        public readonly SplitOrientation Split;

        public DockPaneGroup(IDockPane first, IDockPane second, SplitOrientation split)
        {
            First = first;
            Second = second;
            Split = split;
        }


        #region IDockPane Membri di

        public bool Docked
        {
            get { return First.Docked && Second.Docked; }
        }

        private System.Windows.GridLength _width = System.Windows.GridLength.Auto;
        private System.Windows.GridLength _height = System.Windows.GridLength.Auto;

        public System.Windows.GridLength GridWidth
        {
            get
            {
                return _width;
            }
            set
            {
                _width = value;
            }
        }

        public System.Windows.GridLength GridHeight
        {
            get
            {
                return _height;
            }
            set
            {
                _height = value;
            }
        }

        #endregion
    }
}

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)

Share

About the Author

adospace.NET
Systems Engineer
Italy Italy
I bought my first computer in Nov 1991, 21th and I started programming with QBasic under MSDOS.
Today my main interest is developping application with .NET 3.5.
Visit YouDev.net for tutorials on AvalonDock, download WPF controls, samples and code.

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.150819.1 | Last Updated 17 Jul 2007
Article Copyright 2007 by adospace.NET
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid