Posted 8 March 2022, 9:33 pm EST
Hi,
Sorry for the delay in response.
-
We are discussing this WPF/Winform C1DockControl’s collapse behavior to the concerned team and will be get back to you once we have any update from them.[Internal Track Id - C1XAML-28773]
-
C1DockGroup is to bind the C1DockTabControls in group, It use as a C1DockControl item to enclose C1DockTabControls in a sub-rectangle of the available space.
2A. This is related to DockPanel which measure DockTabControl. Try setting HorizontalFill=“True” for at least one C1DockTabControl, it will fill the remaining space and behavior will be correct(implemented in attached sample).
2B. Wpf and Winforms DockControl have different architecture. Hence Wpf C1DockControl’s Tab item automatic adjust according to the header content size.
2C. You can set TabStrip and Header height by handling Loaded event f C1dockTabControl as: (see code snippet)
Dim dockTabControl = CType(sender, C1DockTabControl)
Dim tabStrip = CType(dockTabControl.Template.FindName("TabPanel", dockTabControl), C1TabPanel)
tabStrip.Height = 40
For Each item As C1TabItem In tabStrip.Children
Dim presenter = CType(item.Template.FindName("DockTabItemContent", item), ContentPresenter)
presenter.Height = 40
Next
Dim head = CType(dockTabControl.Template.FindName("HeaderContainer", dockTabControl), Border)
head.Height = 60
2D. You can change Pin/Unpin icon, just like 4.5.2 C1DockControls by handling Loaded event od C1DockTabControl as : (see code snippet)
Dim stack = CType(dockTabControl.Template.FindName("StackPanelButtons", dockTabControl), StackPanel)
CType(CType(CType(stack.Children(2), Border).Child, Button).Content, C1PathIcon).Data = "M 3.71875 2.28125 L 2.28125 3.71875 L 28.28125 29.71875 L 29.71875 28.28125 L 21.75 20.3125 C 21.988678 19.231627 22.072023 18.111911 21.875 17 L 29.4375 11.46875 L 20.53125 2.5625 L 15 10.125 C 13.889037 9.9274235 12.764228 10.013944 11.6875 10.25 L 3.71875 2.28125 z M 20.78125 5.625 L 26.375 11.21875 L 19.59375 16.1875 L 19.78125 16.84375 C 19.930164 17.410929 20.006357 17.989892 20 18.5625 L 13.4375 12 C 14.010039 11.993776 14.588137 12.069369 15.15625 12.21875 L 15.8125 12.40625 L 20.78125 5.625 z M 8.21875 11.84375 C 7.96575 12.04475 7.732 12.269 7.5 12.5 L 6.78125 13.1875 L 12.09375 18.5 L 4 26.59375 L 4 28 L 5.40625 28 L 13.5 19.90625 L 18.8125 25.21875 L 19.5 24.5 C 19.731 24.269 19.95625 24.03425 20.15625 23.78125 L 8.21875 11.84375 z"
CType(CType(CType(stack.Children(1), Border).Child, Button).Content, C1PathIcon).Data = "M 20.53125 2.5625 L 19.84375 3.5 L 14.9375 10.1875 C 12.306897 9.7319347 9.5276177 10.472382 7.5 12.5 L 6.78125 13.1875 L 7.5 13.90625 L 12.09375 18.5 L 4 26.59375 L 4 28 L 5.40625 28 L 13.5 19.90625 L 18.09375 24.5 L 18.8125 25.21875 L 19.5 24.5 C 21.527618 22.472382 22.268065 19.693103 21.8125 17.0625 L 28.5 12.15625 L 29.4375 11.46875 L 28.625 10.65625 L 21.34375 3.375 L 20.53125 2.5625 z M 20.78125 5.625 L 26.375 11.21875 L 20.15625 15.78125 L 19.59375 16.1875 L 19.78125 16.84375 C 20.263326 18.677254 19.73729 20.586311 18.59375 22.1875 L 9.8125 13.40625 C 11.413689 12.262708 13.322746 11.736674 15.15625 12.21875 L 15.8125 12.40625 L 16.21875 11.84375 L 20.78125 5.625 z"
Please refer the attached sample for the same : WPFAppDockingDemo.zip
Best Regards,
Nitin