Not able to add other controls as child to C1DockControl

Posted by: vinothkumar.r2210 on 21 September 2020, 6:14 pm EST

    • Post Options:
    • Link

    Posted 21 September 2020, 6:14 pm EST

    Hi,

    I have C1DockControl in my window. It accepts only C1DockGroup and C1DockTabControl as valid children’s. I am not able to add other controls. Kindly let me know the reason behind it and please let me know if there is any alternate control to achieve docking tab control functionalities.

    Thanks and Regards,

    Vinoth Kumar Ravi

  • Posted 22 September 2020, 6:31 pm EST

    Hi Vinoth,

    C1DockControl simulates the docking system of MS Visual Studio. In a docking application, user may change docking of items on the fly and hence is the need of unified containers. C1DockTabControl/C1DockGroup servers the same purpose and therefore the structure is by design.

    So, in general, you would add your element/content as follows:

    
     <c1:C1DockControl>
             <c1:C1DockTabControl>
                    <c1:C1DockTabItem Header="Tab 1">
                        <!--Add controls or content here-->
                        <TextBox>Test</TextBox>
                    </c1:C1DockTabItem>
                    <c1:C1DockTabItem Header="Tab 2">
                        <!--Add controls or content here-->
                        <TextBox>Test</TextBox>
                    </c1:C1DockTabItem>
              </c1:C1DockTabControl>
      </c1:C1DockControl>
    
    

    You may refer https://www.grapecity.com/componentone/docs/wpf/online-dockcontrol/C1DockControl_Elements.html for better understanding of this structure. Do you have any specific need, please let us know the same.

    Regards,

    Kartik

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels