DockPanel Suite Quick Start & Usage Tips

Source: Internet
Author: User
DockPanel Suite Quick Start & Use tips 1.DockPanel Suite Quick Start
(1) Create a form that inherits from Dockcontent
public partial class Equipmenttreewindow:dockcontent and then slightly set some properties such as showhint (docking position) and so on.
(2) Declares that a main form contains a DockPanel. You can simply drag the control directly
Private WeifenLuo.WinFormsUI.Docking.DockPanel DockPanel; Set up Documentstyle and so on.
(3) Private Equipmenttreewindow Equipwin = new Equipmenttreewindow (); Declare and instantiate a control you just created and display it in the DockPanel
Equipwin.show (DockPanel); Then run it and you'll see the effect.


2. In use. NET open source Framework DockPanel suite, you often need to put two panels on the same side but do not need to appear tab, then you can do this
<!--

Code highlighting produced by Actipro Codehighlighter (freeware)
http://www.CodeHighlighter.com/

-->//Move Scanwin to the lower half of the left
Scanwin.show (DockPanel, Dockstate.dockbottom);
Scanwin.show (DockPanel, dockstate.dockleft); Scanwin is a form that inherits the Dockcontent, so that you can put Scanwin on the lower part of the left without the tab. The upper half of this time can be called directly. Show (Dockpanel,dockstate.dockleft) without having to call two times layout like Scanwin.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.