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:

    <c1:C1DockTabControl
    ItemsSource="{Binding Tabs}"
    ShowHeader="False"
    TabStripPlacement="Top"
    TabItemClose="InEachTab">
    </c1:C1DockTabControl>

    And 'Tabs' is an ObservableCollection<C1DockTabItem>

    Any suggestion ?

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

    Hello,

    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.

    Regards,
    Ruchir
  • Replied 11 August 2020, 7:04 pm EST

    Hi,

    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.

    Regards,
    C1DockTabControl_Fixed.zip
  • Marked as Answer

    Replied 9 September 2020, 6:57 am EST

    Hi,

    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.

    Regards,
    c1DockTabControl.zip
  • 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.

    Regards,
  • Replied 15 September 2020, 7:43 pm EST

    Hi !

    That's was the problem.

    thanks for the help.

    Fernando Ortiz
Need extra support?

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

Learn More

Forum Channels