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

2016_1_217: Maximize Rad Pane upon application launch

9 Answers 71 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Zvi
Top achievements
Rank 1
Zvi asked on 17 Sep 2017, 02:10 PM

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

Sort by
0
Zvi
Top achievements
Rank 1
answered on 19 Sep 2017, 01:47 AM

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 

0
Zvi
Top achievements
Rank 1
answered on 19 Sep 2017, 02:02 PM
<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>
0
Vladimir Stoyanov
Telerik team
answered on 19 Sep 2017, 02:17 PM
Hi Zvi,

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
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
0
Zvi
Top achievements
Rank 1
answered on 20 Sep 2017, 04:10 AM

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 

0
Vladimir Stoyanov
Telerik team
answered on 20 Sep 2017, 01:06 PM
Hello Zvi,

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
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
0
Zvi
Top achievements
Rank 1
answered on 23 Sep 2017, 04:22 AM

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:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:views="clr-namespace:Tester.Views"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             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 

 

 

0
Vladimir Stoyanov
Telerik team
answered on 27 Sep 2017, 04:42 PM
Hi Zvi,

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
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
0
Vladimir Stoyanov
Telerik team
answered on 28 Sep 2017, 02:45 PM
Hello Zvi,

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
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
0
Zvi
Top achievements
Rank 1
answered on 29 Sep 2017, 08:39 PM

Hello,

Thank you very much for your time and effort.

Best regards,

Zvika

Tags
Docking
Asked by
Zvi
Top achievements
Rank 1
Answers by
Zvi
Top achievements
Rank 1
Vladimir Stoyanov
Telerik team
Share this question
or