Problem with DockTabControl and MVVM

Posted by: fernando.ortiz on 5 August 2020, 11:32 pm EST

  • Posted 5 August 2020, 11:32 pm EST

    Hello !
    i'm working with C1DockControl and MVVM. My problem is when i bind the tabs, cant' float the tabs.

    My code is:

    ItemsSource="{Binding Tabs}"

    And 'Tabs' is an ObservableCollection<C1DockTabItem>

    Any suggestion ?

    Best regards!
  • Replied 7 August 2020, 5:02 am EST


    I see what you mention, we are conducting more investigation on this [ID: 456744] and will get back to you as soon as there is a conclusion.

  • Replied 11 August 2020, 7:04 pm EST


    We have received information from developer and we are sorry to inform you that DockControl does not support direct ItemCollection binding, so you need to bind data to DockControl on code behind. Please check the attached application wherein the same has been implemented.

  • Marked as Answer

    Replied 9 September 2020, 6:57 am EST


    I am happy to share with you that the issue/limitation is fixed in the latest 2020v2 hotfix. So, to fix this, you are requested to upgrade to 4.5.20202.719 build version using ComponentOneControlPanel.
    Also, attached is sample application for reference.

  • Replied 15 September 2020, 6:45 pm EST

    Hello !
    I am very happy with the release of this hotfix. But in the ComponentOneControlPanel app I can't select that version. Has this hotfix been released yet?

    Many thanks for help me
    Fernando Ortiz
  • Replied 15 September 2020, 7:14 pm EST

    Hello Fernando,

    Please ensure you are checking the 'Include prerelease and hotfix versions' checkbox under the 'Build Repository' option in the tool strip menu at top. Only then will you be able to see the hotfix build.

  • Replied 15 September 2020, 7:43 pm EST

    Hi !

    That's was the problem.

    thanks for the help.

    Fernando Ortiz
  • Replied 4 October 2020, 11:01 pm EST


    I upgraded my project to hotfix version and the problem was there. when i work with ItemsSource property, cant' float the tabs.

    I attached a sample project to show you the problem
  • Replied 4 October 2020, 11:03 pm EST

    Here is the sample project.
  • Replied 5 October 2020, 11:33 pm EST

    Hi Fernando,

    I checked the latest application you shared and the tab's can't float because the DockControl is not bind in code-behind.
    Like informed earlier, DockControl does not support direct ItemCollection binding, so it needs the data to be bound DockControl in code behind. I have modified this application to show the suggested approach.
    The hotfix fixes the exception encountered on C1TabControl sometimes because ItemCollection is not C1TabItem.

    Kind regards,
Need extra support?

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

Learn More

Forum Channels