Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
575
DockManager Events
posted

Hi,

I have dockManager and i have two TabGroupPane in the Right SplitPane.When the user click the one

of the TabGroupPane I want to unpin that Particular Window.I have attached the image for your reference.

 

 

 

thanks

Ramesh Babu.

 

Parents
  • 54937
    Verified Answer
    Offline posted

    Do you mean that you want to pin an unpinned pane when the user clicks on the unpinned tab item? If so perhaps you can catch the PreviewMouseDown and look for a PaneTabItem and change its Pane's IsPInned property value.

    e.g.

        private void XamDockManager_PreviewMouseDown(object sender, MouseButtonEventArgs e)
        {
            DependencyObject d = e.OriginalSource as DependencyObject;
     
            if (null != d && XamDockManager.GetPaneLocation(d) == PaneLocation.Unpinned)
            {
                PaneTabItem tab = Utilities.GetAncestorFromType(d, typeof(PaneTabItem), trueas PaneTabItem;
     
                if (tab != null)
                {
                    tab.Pane.IsPinned = true;
                    e.Handled = true;
                }
            }
        }

     

Reply Children
No Data