This question is locked. New answers and comments are not allowed.
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:
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,
Pieter
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
;
}
else
{
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,
Pieter