Hi Brijesh,
Query 1 : Can we have a refresh button with close button
We have prepared sample to meet your requirement. In this sample we have bound command(“RefreshCommand”) of ViewModel to the new ToggleButton(“RefreshButton”) and we have displayed MessageBox while clicking the RefreshButton. You can modify the given template based on your requirement. Please download the sample for the same from below,
Query 2: If we are creating a new window and adding in Docking manager with Float mode. Can we pass custom header at that time.
Yes, we can change the header of the existing or new child of DockingManager using SetHeader() property of DockingManager, please refer the below code example,
| ContentControl newchild = new ContentControl(); DockingManager.SetHeader(newchild, "Output"); DockingManager.SetState(newchild, DockState.Float); DockingManager.SetDesiredWidthInFloatingMode(newchild, 400); DockingManager.SetDesiredHeightInFloatingMode(newchild, 200); dockingmanager.Children.Add(newchild); |
Query 3 : Can we have same template for Dock mode also in Docking manager.
No, we have to define separate template for the element which state is Dock. We have prepared sample to meet your requirement. In this sample we have customized the template of DockHeaderPresenter and bound the style to the DockHeaderStyle property of DockingManager. Please download the sample from below location,
Note : In the provided template we have changed the order of the “CloseButton” and “AutoHideButton”.
If we have misunderstood your query please get back to us with more details. This would help us to proceed further on this.
Regards,
Durga S.