This is a migrated thread and some comments may be shown as answers.

Constraint RadPanes not to be floating

5 Answers 102 Views
Docking
This is a migrated thread and some comments may be shown as answers.
RoxanaC
Top achievements
Rank 1
RoxanaC asked on 12 Oct 2010, 11:29 AM
Hello!
I need in my application the docking feature of the panes - to be able to put them in any position I need in the docking panel, during runtime. But somehow I need to constrain them so there cannot be any floating panel - I mean if the user drags a RadPane but he is not positioning it in any other place, the RadPane will go back to it's initial position.
Setting the CanFloat property on false is just freezing the pane, but I don't want this behavior.

Is this possible?

Thank you!
Roxana

5 Answers, 1 is accepted

Sort by
0
RoxanaC
Top achievements
Rank 1
answered on 14 Oct 2010, 08:33 AM
Hello! Somebody!
Anybody?

Additional question - Is there the possibility to remove the close button from a floating pane? (not only to disable it by setting CanUserClose property to false)
0
George
Telerik team
answered on 15 Oct 2010, 08:25 AM
Hello Roxana,

Straight to the questions:

  1. Unfortunately, this scenario is not supported for the RadDocking control out-of-the-box. It is very hard to return the RadPane in a previous RadPaneGroup, because RadDocking control destroys the group, when the RadPane leaves this group empty.
  2. You could achieve it with a custom template for the RadDocking and remove the Close button. For more information, please refer to our online documentation - http://www.telerik.com/help/wpf/raddocking-styling-the-toolwindow.html

I hope this helps.


All the best,
George
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
RoxanaC
Top achievements
Rank 1
answered on 18 Oct 2010, 09:30 AM
Hello!
For the first point I was kind of expecting this answer...
For the second one.... :(
the documentation is not help at all since I don't have Expression Blend on my computer I don't think I'll be able to install it.
I've tried to have in my UserComponent's ( that uses the RadDocking component ) resources defined an entire style or just the template for ToolWindow -  that copies everything in Telerik style code but the "CloseButton" - no success.
Is there any way you can hide that button programmatic or do you have some sample project for that?


Thank you!
Best regards,
Roxana
0
Accepted
George
Telerik team
answered on 20 Oct 2010, 03:40 PM
Hi Roxana,

I modify the template for the ToolWindow. Attached you can find the sample. Let me know if this suits your needs.

Best wishes,
George
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
RoxanaC
Top achievements
Rank 1
answered on 28 Oct 2010, 08:46 AM
Thank you!
Putting the toot window style in App.xaml did the trick!
Tags
Docking
Asked by
RoxanaC
Top achievements
Rank 1
Answers by
RoxanaC
Top achievements
Rank 1
George
Telerik team
Share this question
or