.NET 6 C1DockControl Save / Load

Posted by: gkayne on 10 January 2022, 10:01 pm EST

  • Posted 10 January 2022, 10:01 pm EST

    When saving and loading the layout, the controls contained within the docked tabs are lost - see the attached sample - run the app, select save layout button, select load layout button. The layout is correctly reestablished, but all controls are missing. WPFAppDockingVB.zip
  • Replied 12 January 2022, 4:17 pm EST

    Hi,

    Thanks for providing the sample.

    JFYI, When we pass true parameter, it tells C1DockControl to store the names of each C1DockTabControl, C1DockGroup and C1DockTabItem in the XML file. So, we need to set x:Name on each C1DockTabItems to preserve the content of the C1DockTabItems.

    You can refer here : https://www.grapecity.com/blogs/preserving-a-docked-layout-with-c1dockcontrol

    Please refer the attached modified sample for the same : WPFAppDockingVB_Mod.zip

    Regards,
    Nitin
  • Replied 12 January 2022, 9:07 pm EST

    Thanks for the quick response and clarification.
  • Replied 15 January 2022, 6:02 pm EST

    In the sample you returned - after saving and loading the layout, the first tab's visual in each of the C1TabDockControl stays as showing selected when not selected - even after changing the tabs dock location.
  • Replied 18 January 2022, 6:08 pm EST

    Hi,

    We have replicated this issue at our end. This seems like a bug, so that we have escalated this to the development team. We will get back to you once we have any update.
    [Internal Tracking Id - C1XAML-28770]

    Best Regards,
    Nitin
  • Replied 28 January 2022, 1:50 am EST

    Nitin,

    See the attached example (it has been updated to include C1DockGroups around each C1DockTabControl).

    When you run this application you are able to resize the right side of the rightmost C1DockTabControl - which shrinks the panel. This should not be resizable in its current state. It will also resize incorrectly when it is not maximized - in that case if you carefully select the left side of the border you get the same incorrect behavior.

    WPFAppDockingVB_Mod2.zip
  • Replied 30 January 2022, 4:59 pm EST

    Hi Glen,

    It seems like attachment is not uploaded properly. There's no Folder/File available in attached Zip file.
    Could you please share the sample again?

    Best Regards,
    Nitin
  • Replied 31 January 2022, 2:00 am EST

    Apologies, please see the attached.
    WPFAppDockingVB_Mod2.zip
  • Replied 31 January 2022, 4:23 pm EST

    Hi Glen,

    Thanks for the sample.

    We have replicated this issue at our end and we have replicated it to the devs. We will get back to you once we have any update.[Internal Tracking Id-C1XAML-28881]

    Best Regards,
    Nitin
  • Replied 24 February 2022, 10:59 pm EST

    Hi Glen,

    We apologize for any inconvenience caused to you.

    While resizing the right side of the rightmost C1DockTabControl, we actually resizing the dock-splitter of rightmost C1DockTabControl and it makes C1DockTabControl smaller.

    So we are sorry to inform you that this is the design behavior of WPF C1DockControl.

    Regards,
    Nitin
  • Replied 28 February 2022, 8:58 am EST

    this is the design behavior of WPF C1DockControl - You are kidding right.
  • Replied 2 March 2022, 6:02 pm EST

    Hi glen,

    I discussed this behavior with the development team that you are not happy with this behavior and we understand your situation. This behavior doesn't seems like valid and we are happy to inform you that this behavior is fixed in 2022v1.
    2022v1 release estimation is at the end of the march of this year. So, you need to wait for the release till the end of march.

    Regards,
    Nitin.
  • Replied 5 March 2022, 12:16 am EST

    Thank you.
  • Replied 6 March 2022, 5:50 pm EST

    Hi,

    Apologize for the delay in response.

    Yes, the issue related to tab selection state while save/load layout(Tracking Id - C1XAML-28770) is fixed in 2022v1 and will be available at the end of March this year.

    Regards,
    Nitin.
  • Replied 7 March 2022, 1:02 am EST

    Thank you.
  • Replied 31 March 2022, 10:06 pm EST

    Hi,

    We are happy to inform you that the issue(C1XAML-28770 and C1XAML-28881) has been fixed with the latest build 2022v1.
    So, we would request you to upgrade to the latest build using ComponentOne control panel. Just in case if you don't have ComponentOne Control Panel, you can download it from https://www.grapecity.com/componentone/download.

    Best Regards,
    Nitin
  • Replied 3 April 2022, 4:23 am EST

    Nitin, In the latest version (C1.WPF.Docking - 6.0.20221.209), please note:

    1. Save / Load Layout - when you save the layout with a C1DockTabControl in the collapsed state (DockMode.Sliding) and reload the layout, the C1DockTabControl is not resizable when it is expanded or pinned, and has to be redocked.

    2. Resizing - the C1DockTabControl is not resizable when it is in the collapsed state (DockMode.Sliding) and expanded.

    3. Docking Zones - docking zones are not highlighting.

    4. Dock Indicator - the outer bottom dock indicator is not displaying when the form is maximized - it is displayed when not maximized.

    5. CanUserReorder Property - the default for the C1DockTabControl's CanUserReorder property is now false - I believe this changed in the current version - not a big deal to set this property to true, but caused confusion initially.

    See the attached example:

    WPFAppDockingVB_2022-04-01.zip
  • Replied 3 April 2022, 6:27 pm EST

    Hi Glen,

    Thanks for reaching out to us again.

    1. We have replicated this issue at our end. This seems like a bug. So, we have escalated it to the development team. We will get back to you once we have any update from them [Internal Tracking Id - C1XAML-29328]

    2. We are unable to replicate this behavior at our end. Could you please clarify in detail or provide a small sample replicating this behavior. So, that we can assist you accordingly.

    3. We are discussing this behavior with the devs[Internal Tracking Id - C1XAML-29330]

    4. We have replicated this issue at our end too. This seems like a bug. So, we have escalated it to the devs. We will get back to you once we have any update from them [Internal Tracking Id - C1XAML-29329]

    5. Apologize for the confusion, our main objective was to disable reordering by default. So, that user can't reorder tabs but dock by default.

    Best Regards,
    Nitin
  • Replied 3 April 2022, 8:14 pm EST

    Nitin,

    2. Resizing - the C1DockTabControl is not resizable when it is in the collapsed state (DockMode.Sliding) and expanded.

    To replicate this issue - in the sample provided - collapse/pin the Left C1DockTabControl - then slide open (do not dock) the Left01 Tab - it is not resizable.

    Note: if you redock the the Left C1DockTabControl - this behavior corrects itself. But if you again save the layout and load the layout - this error will reoccur and you will need to redock the C1DockTabControl.

    I think this is related to Item 1 above and also to the issue identified in [Internal Tracking Id-C1XAML-28881].

    Another bug, I believe related to this same issue can be replicated as follows:

    2A. Run the provided sample - collapse/pin the Right C1DockTabControl - you can resize the right edge of the MainC1DockTabControl/Yellow Tab - this should not be resizable along this edge.

    Another bug:

    6. Tab Selection State - to replicate in the attached sample - run the sample - select the Right 02 Tab - Dock the entire Right C1TabDockControl to any of the Inner Right/Left/Top/Bottom Dock positions - the Right 01 Tab now stays as showing selected when not selected - even after changing the tabs dock location. This will also happen with the Left C1TabDockControl. If you first select any tab other than the first and then dock it to the Inner Right/Left/Top or Bottom Dock positions, the first tab within the C1TabDockControl gets highlighted and stays highlighted as selected. This seems to be related to the previous bug that was fixed [Internal Tracking Id - C1XAML-28770]
  • Replied 3 April 2022, 11:43 pm EST

    Hi,

    2. Still we are unable to replicate this behavior at our end. After collapsing the left C1DockTabControl and then opening slide(not dock) we can resize the DockTabControl.
    (see Gif)


    6. We have replicated this issue at our end. This seems like a bug. So that we have escalated it to the devs. We will get back to you once we have any update on this.[Internal Track Id - C1XAML-29333]

    Best Regards,
    Nitin.
  • Replied 4 April 2022, 3:15 am EST

    Nitin, for Item 2 - your GIF is showing the issue on the right side (not sure why the left side is working in your example), but you are replicating it on the right - I have added a video showing my experience, the video also demonstrates the issue described in item 2a.

    2022-04-04-C1DockControlVido.zip
  • Replied 4 April 2022, 3:32 pm EST

    Hi,

    Thanks for the video.

    This is really strange. We are getting different behaviors than yours. We are attaching the sample, please check this at your end too.
    If you'll not get your behavior in this sample then please update to replicate the same.
    If you are getting your behavior in this sample. Please provide other information about repro steps. So, it would be nice to understand whether it is platform-dependent issue or not.

    Here's the sample: DockResizeBehavior.zip

    Best Regards,
    Nitin
  • Replied 4 April 2022, 8:21 pm EST

    Nitin, You were not using the latest build I had sent you - see the attached file - this will replicate the behavior shown on my video.

    Also in the attached, another issue:

    7. Loading layout not loading controls - To replicate - start the app - save the layout - close the "Main 01" tab - load the layout - the controls in the "Main 01" tab are not showing. Am I ding something wrong here?


    WPFAppDockingVB_2022-04-05.zip
  • Replied 5 April 2022, 12:17 am EST

    6. You are using C1DockTabControl under C1DockGroup which is creating this issue. We have replicated this at our end. We are discussing this behavior with the development team.[Internal Tracking Id - C1XAML-29354]
    Also we are unable to replicate the 2A(resizing from right DockTabControl). From your provided sample.

    7. We have replicated this issue and this seems like a bug. So we have escalated it to the devs. We will get back to you once we have any update from them.[Internal tracking Id - C1XAML-29353]

    Best Regards,
    Nitin.
  • Replied 5 April 2022, 3:01 am EST

    Nitin, with respect to:

    6. this should be: 2. Resizing - You are using C1DockTabControl under C1DockGroup which is creating this issue. We have replicated this at our end. We are discussing this behavior with the development team.[Internal Tracking Id - C1XAML-29354]
    Also we are unable to replicate the 2A(resizing from right DockTabControl). From your provided sample.


    My comments:
    • I removed the C1DockGroups
    • After removing the C1DockGroups - this issue still presents itself on the right side
    • I reordered the creation of the C1DockTabControl Docked to the right side hosting the "Right" tab items to create it before the C1DockTabControl hosting the "Main" tab items
    • This resolves the issue for both Item 2 and Item 2A.


    So this appears to be more related to the proper use of the C1DockGroup controls and the order in which you create the C1TabControls, and is likely not a bug.
  • Replied 5 April 2022, 3:02 pm EST

    Hi Glen,

    Yes, that was point 2, apologize for this mistake.
    However, we are happy that you've got your expected behavior. Also, we have not mentioned this(C1XAML-29354) as a bug. We are discussing this behavior with devs because that was not in the previous build versions. We will inform you whenever we get the response from them.

    Best Regards,
    Nitin.
Need extra support?

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

Learn More

Forum Channels