C1DockTabControl Drag and Dock issue

Posted by: vinothkumar.r2210 on 14 October 2020, 10:03 pm EST

  • Posted 14 October 2020, 10:03 pm EST

    Hi,
    I have added DockTabControl inside C1DockGroup control. When I tried to drag and dock any DockTabControl to right/left of C1DockControl, a blank space is created as mentioned in attached image (Please refer attached image). When clicking that blank space, immediately "Visual is not connected to PresentationSource error is thrown" and application got crashed. Please refer attached solution file.

    Any suggestion please?.

    Thanks and Regards,
    Vinoth Kumar Ravi
  • Replied 14 October 2020, 10:04 pm EST

  • Replied 15 October 2020, 7:55 pm EST

    Hello,

    I'm afraid that it is difficult to diagnose this problem based only on the information available. I have attached here a sample project where the C1DockControl has a C1DockGroup with multiple C1DockTabControl placed inside. With this layout, I do not get an exception irrespective of the docking I try.
    So, can you please ensure that you are using the latest packages and if still you face the problem, can you please modify the attached application to demonstrate the problem?

    Regards,
    C1DockControl_WPF.zip
  • Replied 16 October 2020, 2:54 pm EST

    Hi Ruchir,
    As requested I have modified the sample application to reproduce the issue. Please find the attached sample project.

    Thanks and Regards,
    Vinoth Kumar Ravi
    C1DockControl_WPF.zip
  • Replied 20 October 2020, 1:58 am EST

    Hi Ruchir,

    Please find below scenarios to reproduce the issue.

    1. Run Application with MainWindowModified.xaml as startup window
    2. Click Add Button to add controls to C1DockGroup control.
    3. Once added, try to drag and dock any DockTabControl.
    4. Once docked, a blank space will get created in DockGroupControl.

    Thanks and Regards,
    Vinoth Kumar Ravi
  • Replied 20 October 2020, 2:00 am EST

    Hi Ruchir,

    Please let me know any updates on this.

    Thanks and Regards,
    Vinoth Kumar Ravi
  • Replied 21 October 2020, 8:33 pm EST

    Hello,
    This is just to update you that with your application I can see the blank space and the problem seems specific to your implementation/customizations, so I am investigating on this and will let you know an update soon.
    Regards,
  • Replied 22 October 2020, 2:59 am EST

    Hi Mr. Ravi,

    We are discussing your case and the issue with the developers [ID: 26637]. We will get back to you as soon as there is an update.

    Regards,
  • Replied 7 November 2020, 11:28 pm EST

    Hi Ravi,

    Following is the response received from the development team:
    -------------------
    I commented those lines and exception is gone, but the drop position still not correct.
    So, we recommend you to use the attached sample (C1DockTabControl_BindingListObject.zip), which binding List object to C1DockControl: https://www.dropbox.com/s/9avq1s5wypxk7si/C1DockTabControl_BindingListObject.zip?dl=0
    -------------------
    Regards,
  • Replied 9 November 2020, 2:18 am EST

    Hi Ruchir,

    Thanks for the update. But this is not the case which I have mentioned. Kindly go through the sample solution file which I have provided. Please try to fix the issue for the same scenario.

    Thanks and Regards,
    Vinoth Kumar Ravi
  • Replied 10 November 2020, 3:53 am EST

    Okay, Vinoth.
    I am discussing it again with devs and will get back to you as soon as we receive information.

    Thanks,
  • Replied 2 December 2020, 6:54 am EST

    Hello,

    Following is the information received from the team:
    --------------------
    On the sample shared earlier, we have list data model (AllAccounts). From that list, we do the same as you: Create DockTabControl, create DockTabItem with data model. And Dock control takes care the rest.
    On your sample, you tried to Create DockTabControl, create DockTabItem on your way and it causes error.

    We conclude that this issue comes from your sample, not our control, So we attached working sample as reference. Also, we pointed out the error part on attached image on the previous comment.
    --------------------
    Hope this helps.

    Regards,
  • Replied 23 December 2020, 12:13 am EST

    Hi Ruchir,

    I want to know one thing. Is the issue occurs because of applying our custom template to your DockTabControl?

    Thanks and Regards,
    Vinoth Kumar Ravi
  • Replied 24 December 2020, 12:04 am EST

    Hello,

    In your sample, you tried to create DockTabControl, create DockTabItem in your way and it causes error whereas in the sample shared on Nov7, developers have a list data model (AllAccounts) and from that list, they created DockTabControl, created DockTabItem with data model and dock control takes care the rest.
    That is why I conclude that this issue comes from your sample not from the control.

    I also pointed out the error part on attached image.

    Thanks,
  • Replied 24 December 2020, 1:56 am EST

    Hi Ruchir,
    I can understand where that issue occurs. Can you please clarify on the below?

    Shall we change the template of C1DockTabControl?
    By changing the template Is it will affect any default functionality?

    Thanks and Regards,
    Vinoth Kumar Ravi
  • Replied 27 December 2020, 8:01 pm EST

    Hello,

    >Shall we change the template of C1DockTabControl? By changing the template Is it will affect any default functionality?
    Yes, changing the control template can affect interaction behavior of the control.

    ~Regards,
Need extra support?

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

Learn More

Forum Channels