Problem with DockTabControl and MVVM

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

    • Post Options:
    • Link

    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

    Any suggestion ?

    Best regards!

  • Posted 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

  • Posted 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

  • Posted 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

  • Posted 15 September 2020, 6:45 pm EST - Updated 3 October 2022, 11:49 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

  • Posted 15 September 2020, 7:14 pm EST - Updated 3 October 2022, 11:49 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,

  • Posted 15 September 2020, 7:43 pm EST

    Hi !

    That’s was the problem.

    thanks for the help.

    Fernando Ortiz

  • Posted 4 October 2020, 11:01 pm EST

    Hi!

    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

  • Posted 4 October 2020, 11:03 pm EST

    Here is the sample project.

    C1Test.zip

  • Posted 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,C1Test_Modified.zip

Need extra support?

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

Learn More

Forum Channels