2016_1_217: Maximize Rad Pane upon application launch

10 posts, 0 answers
  1. Zvi
    Zvi avatar
    16 posts
    Member since:
    Sep 2014

    Posted 17 Sep Link to this post

    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 

  2. Zvi
    Zvi avatar
    16 posts
    Member since:
    Sep 2014

    Posted 18 Sep in reply to Zvi Link to this post

    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 

  3. Zvi
    Zvi avatar
    16 posts
    Member since:
    Sep 2014

    Posted 19 Sep Link to this post

    <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>
  4. Vladimir Stoyanov
    Admin
    Vladimir Stoyanov avatar
    22 posts

    Posted 19 Sep Link to this post

    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.
  5. Zvi
    Zvi avatar
    16 posts
    Member since:
    Sep 2014

    Posted 19 Sep in reply to Vladimir Stoyanov Link to this post

    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 

  6. Vladimir Stoyanov
    Admin
    Vladimir Stoyanov avatar
    22 posts

    Posted 20 Sep Link to this post

    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.
  7. Zvi
    Zvi avatar
    16 posts
    Member since:
    Sep 2014

    Posted 22 Sep in reply to Vladimir Stoyanov Link to this post

    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 

     

     

  8. Vladimir Stoyanov
    Admin
    Vladimir Stoyanov avatar
    22 posts

    Posted 27 Sep Link to this post

    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.
  9. Vladimir Stoyanov
    Admin
    Vladimir Stoyanov avatar
    22 posts

    Posted 28 Sep Link to this post

    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.
  10. Zvi
    Zvi avatar
    16 posts
    Member since:
    Sep 2014

    Posted 29 Sep in reply to Vladimir Stoyanov Link to this post

    Hello,

    Thank you very much for your time and effort.

    Best regards,

    Zvika

Back to Top