Ticket T1285258
Visible to All Users

Adding Docking Controls in userControl

created 5 days ago

I have a project which Main Form has several tabs and some tabs have different userControls that are configured in run-time, so my question is that I would like to add DockSite, DockPanels controls into an specific userControls, but it is not allowed (I am no sure why), therefore please advise a strategy of how to do that.

Thanks.

Answers approved by DevExpress Support

created 5 days ago

Hello Deidy,

I attached a sample project that illustrates how to create dock panels at runtime. Should you still encounter issues this way, please illustrate them and your current implementation in a sample project, so we can examine them.

P.S. If you wish to create and dock a panel programmatically, the following steps may help you determine the required parameters:

  1. Create a new project.
  2. Add a TdxDockSite and a couple of TdxDockPanels.
  3. Add a TdxDockingManager and set its DockStyle property to dsVS2005 so that you can see possible docking options.
  4. Add a debug point to the TdxCustomDockControl.DockTo method.
  5. Run the project and use the mouse to drag and drop panels in the way you wish to simulate in your real project.

This way, you can observe the TdxCustomDockControl.DockTo method's parameters and call it in your real project's code.



I hope this information will help you accomplish your task.

    Comments (1)
    D D
    Deidy J. Eberhardt 3 days ago

      Thank you Alex,

      And sorry I was wrong about my question, I meant to refer to TFrame (Instead of UserControl is the term in C#).

      Anyway I created a new ticked about it:
      https://supportcenter.devexpress.com/ticket/details/t1285653

      Thanks

      Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

      Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.