CanUserPin = true on a floating pane that has CanUserPin is false does not seem to work.

2 posts, 0 answers
  1. Pieter
    Pieter avatar
    34 posts
    Member since:
    Jan 2011

    Posted 09 Nov 2012 Link to this post

    I have a telerik layout with docked and undocked panes. In my application the user can switch the layouting of the screen on and off.
    I use the following code for that:
    foreach (RadPane myPane in myDocking.Panes)
         WPFControlLogic.SetPaneChangeFlags(myPane, myPane.IsFloating);
    public static void SetPaneChangeFlags(RadPane radPane, bool IsFloating)
        if (UserCanChangeLayout)
            radPane.CanUserClose = true;
            radPane.CanUserPin = true;
            radPane.CanFloat = true;
            radPane.CanUserClose = IsFloating;
            radPane.CanUserPin = false;
            radPane.CanFloat = false;
    } // SetPaneChangeFlags

    I use this code on a layout that is loaded where all panes having CanUserPin false, CanUserClose false and CanFloat false, except the floating pane, that has CanUserClose is true, but CanUserPin en CanFloat is false.

    After running the code wih UserCanChangeLatyout is true all docked panes can be dragged and docked again, but the floating pane I have still can not be docked. So the CanUserPin = true did not seem to work on a floating pane.

    Any clues how to solve this?

    Thanks in advance for your response,


  2. Vladi
    Vladi avatar
    743 posts

    Posted 14 Nov 2012 Link to this post

    Hello Pieter,

    Pinning and docking of RadPanes are two different things in the control.

    Setting the CanUserPin property of RadPane to true/false will show/hide the pin button on the top right corner of that Pane. In the case when a Pane is floating that button is hidden by default and changing the CanUserPin property will seem as it does nothing but if you Dock the pane you will notice that the button is shown.

    I recorded a short video showing what I mean.

    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft R3 2016 release webinar banner
Back to Top