Click here to Skip to main content
15,885,546 members
Everything / DockPanel

DockPanel

DockPanel

Great Reads

by Brian C Hart
This tip shows how to add support for New Horizontal Tab Group and New Vertical Tab Group commands to the Window menu of an application using the DockPanel Suite by Weifen Luo, and some other minor improvements to help decided if at least one of your windows is docked to the side of the main form an
by Jo_vb.net
Use docking framework, MVVM Toolkit and some features
by Wade Harvey
This article shows how to use Winforms, WPF and C# to create a File Explorer Clone with Tabs and an extremely fast parallel file search utility.
by Gerald Gomes
Starting modular application development using Prism, WPF, and Unity container.

Latest Articles

by Jo_vb.net
Use docking framework, MVVM Toolkit and some features
by Wade Harvey
This article shows how to use Winforms, WPF and C# to create a File Explorer Clone with Tabs and an extremely fast parallel file search utility.
by Gerald Gomes
Starting modular application development using Prism, WPF, and Unity container.
by Brian C Hart
This tip shows how to add support for New Horizontal Tab Group and New Vertical Tab Group commands to the Window menu of an application using the DockPanel Suite by Weifen Luo, and some other minor improvements to help decided if at least one of your windows is docked to the side of the main form an

All Articles

Sort by Score

DockPanel 

6 Jul 2011 by Brian C Hart
This tip shows how to add support for New Horizontal Tab Group and New Vertical Tab Group commands to the Window menu of an application using the DockPanel Suite by Weifen Luo, and some other minor improvements to help decided if at least one of your windows is docked to the side of the main form an
3 Jul 2016 by OriginalGriff
This is one of the most common problems we get asked, and it's also the one we are least equipped to answer, but you are most equipped to answer yourself.Let me just explain what the error means: You have tried to use a variable, property, or a method return value but it contains null -...
9 Aug 2011 by Christian Graus
This[^] is how google works. Examples included.
10 Mar 2013 by Samarjeet Singh
I am also using it and I found a solution to your query.See The Snippet belowImports WeifenLuo.WinformsUI.DockingPublic ReadOnly Property ActiveForm() As DocumentForm Get Return TryCast(DockPanel.ActiveDocument, DocumentForm) End Get End PropertyYou can...
23 Mar 2015 by Member 10329090
This is what happened.I have an application WPF application. I opened a lot of tabs.Here are the steps:If I double clicked one tab, it'll be undocked.I maximized the undocked WPF.Then, docked the undocked WPF.After docking, the other tabs are maximized.How to correctly dock an...
26 Jun 2016 by JayantaChatterjee
TabControl is a container control which can not have top level control or MDI(which contain multiple forms), so what you are trying to do is not allowed by the control..Second question's answer:-first find your form then hide the form..code is:-Form childFrm =...
5 Mar 2023 by Jo_vb.net
Use docking framework, MVVM Toolkit and some features
11 Mar 2010 by Marcelo Ricardo de Oliveira
HiI have a problem when using a TextBox with TextWrapping=Wrap which is inside a DataTemplate which is inside a ListBox which is inside a StackPanel.The problem is: when I add new lines to the TextBox, both the ListBox and the StackPanel expand accordingly, but when I remove lines from...
17 Mar 2010 by Suthagar.p
It seems to be, once the window is rendered with the container then we need to again render it.The work around for this would be setting the scroll bar to the textbox
9 Aug 2011 by Elk Cloner
I have a ASP.NET project. That project use ASP:MENU and SITEMAP for generating the menu. Is it possible to set the doc style in the ASP:MENU and SITEMAP. Please give some exaples too.
12 Mar 2014 by Brian C Hart
I am using Weifen Luo's excellent DockPanel suite, and I've also posted in the SourceForge forums about this too. I've attempted to step through the code but I'm not that good at Graphics programming.I was wondering if, by any chance, there might be a way to get Document tabs to look more...
2 Sep 2011 by Columbus-MCSD
Visual Studio UI was done in WPF. DockPanel Suite is Windows FormsYou can check out Avalon Dock here http://avalondock.codeplex.com/[^] It was done in WPF. Although the tabs have that VS2005 look to them, although a bit nicer
2 Sep 2011 by BillWoodruff
CP has articles here on customizing the Tab Control in WinForms (but they are, in general, older articles)[^].
20 Jun 2012 by NeonMika
Hello!So here is my code:
21 Jun 2012 by NeonMika
Thanks to johannesnestler for this solution:>>Ah, now I see you could just change the order of the docking so that LastChildFill uses the ScrollViewer, then you don't have to set the Dock property.
4 Apr 2013 by tellur21
Hello could anyone provide any example, which show functionality with multiple user controls and javascript? Because I try to find solution with google and in other forum but without success. So my user control looks like this:
4 Apr 2013 by Volodymyr Bobko
Hi,It's because of ClientInstanceName in your case is static it is always the same for all your controls. In ClientInstanceName you defining the name of variable where client side JS API object will be stored. And because these names are equals for all your user contriols (and browser knows...
25 Jan 2014 by WopsS
Hi, I have a problem with autohide bar color, I try to change color and it won't work.This is the code:dockPaneSkin.AutoHideStripSkin.DockStripGradient.StartColor = specialBlue;dockPaneSkin.AutoHideStripSkin.DockStripGradient.EndColor =...
10 Feb 2015 by Goutam K. Jha
Hello Developers I'm developing MDI application in C# Windows form and i want to add new child window with dockable auto-hide property.So please help me out with sample example.
6 Jul 2016 by Prakash1206
I am new to DockPanel Suite.what i'm trying to achieve is, having Dockpanel component(with DocumentStyle = DockingMdi) within a TabControl in Winforms.If i set DocumentStyle to DockingWindow or DockingSdi it works fine, but fewer docking optionsSecondForm ^SF = gcnew SecondForm...
3 Jul 2016 by Prakash1206
I'm new to Dock Panel suiteBasically i'm having run time error when it comes to loading layout from xml file. saving layout works fine.I have 2 forms, 1st one is main form. 2nd form is child formpublic ref class MyForm2 : DockContent //2nd form (child form)in main form, i have following...
6 Jul 2016 by Prakash1206
I Hope this helps someone with same issue. dockPanel1 = nullptr; doesn't help in this case. using below code,we can safely remove contents from dockPanel.if (dockPanel1->DocumentStyle == DocumentStyle::SystemMdi) { for each(Form ^form in...
21 Apr 2018 by Wade Harvey
This article shows how to use Winforms, WPF and C# to create a File Explorer Clone with Tabs and an extremely fast parallel file search utility.
2 Dec 2013 by Gerald Gomes
Starting modular application development using Prism, WPF, and Unity container.
18 Jan 2015 by lukeer
Hi experts,one of my projects uses WeiFen Luo's DockPanel Suite. Now customer demands to have tabs sorted in a given order when in Document view.The tabs are all instances of the same DockContent-derived class. It carries a float by which to sort.DockPanel.Contents is a...
5 Mar 2013 by Paras Singh
I am trying to make a text editor using WeifenLuo.WinformsUI.Docking library.I just need to find the active form. For example if I have to do cut.Textbox1.cut()How will I know about the active form ? I really need help!
30 Apr 2014 by Member 10479620
I m working on project in which I used One Main Form and other forms are inherited from Main form through DigitalRune.Windows.Docking Dock Panel . now I want to go to next form through this dockpanel which is also inherited from Main Formprivate void btnNext_Click(object sender, EventArgs...