Add controls in DockTabItem ToolBar

Posted by: vinothkumar.r2210 on 9 May 2020, 3:35 am EST

    • Post Options:
    • Link

    Posted 9 May 2020, 3:35 am EST

    Hi,

    I am new to ComponentOne DockTabItem. I want to add controls in toolbar of DockTabItem. I tried to edit the template but I can’t find where the existing controls of toolbar exists and not able to add new controls. Please suggest how to accomplish this.

    Thanks and Regards,

    Vinoth Kumar Ravi

  • Posted 10 May 2020, 10:22 pm EST

    Hello Vinoth,

    As I understand, you wish to customize the header section of C1DockTabItem, where the menu, dock, and close button are available. If that is so, you should modify the C1DockTabItem.HeaderTemplate property and assign a DataTemplate will any list of controls in it.

    Additionally, I would suggest you to take a look at the default template of the control which is installed here: C:\Program Files (x86)\ComponentOne\WPF Edition\C1WPFDocking.4.5.2\XAML. Referring this, you should be able to learn more about the layout of the control .

    With best regards,

    Ruchir

  • Posted 11 May 2020, 1:34 am EST

    Hi Ruchir,

    Thanks for the reply. I have tried editing the ControlTemplate of DockControl instead of editing the DockTabItem ControlTemplate. I can able to add controls inside that headercontainer. I will also try the above mentioned sample.

    Thanks and Regards,

    Vinoth Kumar Ravi

Need extra support?

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

Learn More

Forum Channels