Posted 31 July 2023, 10:21 pm EST
- Updated 31 July 2023, 10:28 pm EST
Hi Rambabu,
This is the design behavior of the C1DockControl.
When a dock tab item is changed to a ‘floating’ state, it transforms into a separate window. In the given use-case scenario, this newly created window is then added to the MainWindow’s OwnedWindows collection. Upon clicking a button inside this window, a child window is generated. The following GIF shows that the newly created window is linked as a child window to the floating window from which it was generated.
However, if the dock state of the parent window is later changed to ‘docking’, the window is taken out from the MainWindow’s OwnedWindows collection, which consequently removes the child window as well.
Hence, it is the desired behavior that the new window gets hidden when the dock state of the corresponding floating window is changed to ‘Docking’.
Thanks & Regards,
Aastha