Hello,
Upon application launch I want a RadPane to be maximized.
The user will not be able to change that status of this pane. It will be always maximized.
Later on, other panes will be programmatically displayed.
The user will be able to drag those panes, make them float but will not be able to maximize them.
Attached a xaml fragment I'm currently using.
Thank you,
Zvika
9 Answers, 1 is accepted

Hello,
Withe the following code, the pane is maxmized upon startup:
<
telerik:RadDocking
Grid.Row
=
"1"
HasDocumentHost
=
"false"
>
<
telerik:RadSplitContainer
>
<
telerik:RadPaneGroup
>
<
telerik:RadPane
PaneHeaderVisibility
=
"Hidden"
>
<
local:WaveformView
Margin
=
"0,0,0,0"
/>
</
telerik:RadPane
>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
<
telerik:RadSplitContainer
>
It's header is hidden.
But when I tried to all one more pane, the first one is not maximized any more.
Can you help ?
Thank you,
Zvika

<
telerik:RadDocking
Grid.Row
=
"1"
HasDocumentHost
=
"false"
x:Name
=
"ra"
>
<
telerik:RadSplitContainer
>
<
telerik:RadPaneGroup
>
<
telerik:RadPane
PaneHeaderVisibility
=
"Hidden"
>
<
local:WaveformView
Margin
=
"0,0,0,0"
/>
</
telerik:RadPane
>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
<
telerik:RadSplitContainer
InitialPosition
=
"FloatingOnly"
>
<
telerik:RadPaneGroup
>
<
telerik:RadPane
CanDockInDocumentHost
=
"False"
CanUserClose
=
"False"
CanUserPin
=
"False"
IsHidden
=
"true"
x:Name
=
"PciViewPane"
>
<
local:PciView
Margin
=
"0,0,0,0"
/>
</
telerik:RadPane
>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
</
telerik:RadDocking
>
When you add a second RadPane the first one is no longer maximized because they share one RadPaneGroup. If you add the second RadPane in a new RadPaneGroup the first one will still be maximized in its group.
If you want the user to be unable to change the status of the pane, you can take a look at the How to freeze the layout of the RadDocking control article in our documentation.
If the above-mentioned doesn't explain what you were looking for, can you please clarify what you meant by "maximizing a RadPane" and possibly provide additional information about your project so that we could better assist you.
I hope you find this information helpful. Let me know if I can be of any further assistance.
Regards,
Vladimir Stoyanov
Progress Telerik

Hi Vladimir,
My RadPane contains only one user control (PciViewPane) :
<
telerik:RadSplitContainer
InitialPosition
=
"FloatingOnly"
>
<
telerik:RadPaneGroup
>
<
telerik:RadPane
x:Name
=
"PciViewPane"
>
<
local:PciView
Margin
=
"0,0,0,0"
/>
</
telerik:RadPane
>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
Is it possible that when the pane is displayed it will get the size of the user control ?
Thank you,
Zvika
The RadPane doesn't get the size of your control because it has a default value of the FloatingSize property which is "220,300". You can change it by setting the value of the RadDocking.FloatingSize attached property of the RadPane like so:
<
telerik:RadSplitContainer
InitialPosition
=
"FloatingOnly"
>
<
telerik:RadPaneGroup
>
<
telerik:RadPane
x:Name
=
"PciViewPane"
telerik:RadDocking.FloatingSize
=
"800, 800"
>
<
local:PciView
Margin
=
"0,0,0,0"
/>
</
telerik:RadPane
>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
If that doesn't solve your issue, please provide some more information about your user control, how you want the RadPane to behave and potentially a sample project to demonstrate this behavior.
Let me know if you find this helpful and if I can be of any further assistance.
Regards,
Vladimir Stoyanov
Progress Telerik

Hi Vladimir,
The code in Xaml you sent changed the size of the floating pane. But this size is hard coded.
My user control Xaml contains no defined size:
<
UserControl
x:Class
=
"Tester.PciView"
xmlns:views
=
"clr-namespace:Tester.Views"
xmlns:local
=
"clr-namespace:Tester.Views"
mc:Ignorable
=
"d"
>
<
StackPanel
Background
=
"#f0f3f5"
>
...
</
StackPanel
>
Upon showing it with:
PciViewPane.IsHidden = true
I want it to get the maximum size required to see all its controls.
It can be in the cs code.
Is it possible ?
Thank you,
Zvika
We will need some more time to investigate a possible solution to your scenario. We will get back to you.
Thank you for your understanding.
Regards,
Vladimir Stoyanov
Progress Telerik
We investigated the explained case. RadDocking doesn't support the scenario where the ToolWindow is sized according to its content. The best possible solution is to set the floating size explicitly so that it fills all of your content.
We are sorry for the inconvenience. Don't hesitate to contact us again if you have any other questions.
Regards,
Vladimir Stoyanov
Progress Telerik

Hello,
Thank you very much for your time and effort.
Best regards,
Zvika