enlarge\decrease RadPanes that under the same radPaneGroup

5 posts, 0 answers
  1. shay
    shay avatar
    15 posts
    Member since:
    Jun 2015

    Posted 02 Jun Link to this post

     

    *I am using telerik:RadSplitContainer to wrap one paneGroup (and will holds more panes)

     The first Radpane is starting with the app, the second is floating RadPane that i am docked to the first RadPaneGroup and i want to change his size)

    The scenario:

    1. Appliction start with one RadPane

    My start code:
     <telerik:RadDocking x:Name="dockEngineering" 
       <telerik:RadDocking.DocumentHost>
           <telerik:RadSplitContainer x:Name="MiddleContainer">
                 <telerik:RadPaneGroup x:Name="myPaneGroup">
                  <telerik:RadPane  Header="1" >
                          <user control/>
                    </telerik:RadPane>
              </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
        </telerik:RadDocking.DocumentHost>
     </telerik:RadDocking>

    2.Double click on a button open a floating RadPane (create from code)

    3. I Docked the floating RadPane to the existing radPaneGroup (myPaneGroup)

    Code for step 2 and 3:

    creating RadPane from code and add it to the myPaneGroup :

    myRadpane = new MyRadPane(myPaneGroup)    //MyRadPane is RadPane user control
    myPaneGroup.Items(myRadpane )                         //add the radpane to specific PaneGroup
    makeFloatingDockable()                                           //make it float

    4. now in my application I have 2 panes (under the same RadPaneGroup ) side by side (looks ok in the UI)

     

    *************************The problem**************

    I want to enlarge\decrease the size of one of them - how can i do it?

    Thanks

  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 07 Jun Link to this post

    Hi Shay,

    I am not able to understand completely the scenario, especially the last step - how exactly the panes are located in the same panegroup side by side?
    I have attached my test project based on the provided code, is it possible to modify it, so that it demonstrates the exact case and send it back to us?

    Regards,
    Yana
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. UI for WPF is Visual Studio 2017 Ready
  4. shay
    shay avatar
    15 posts
    Member since:
    Jun 2015

    Posted 07 Jun in reply to Yana Link to this post

    Is it possible to have 2 RadPane side by side under the same pane Group?

    in case the answer is Yes: can i resize the RadPanes?

  5. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 07 Jun Link to this post

    Hello Shay,

    I am afraid this will not be possible. You could only have two PaneGroups in a single SplitContainer positioned side by side, check the following snippet:

    <telerik:RadSplitContainer x:Name="MiddleContainer">
        <telerik:RadPaneGroup x:Name="myPaneGroup" telerik:ProportionalStackPanel.RelativeSize="200, 200" >
            <telerik:RadPane  Header="pane 1" >
                <TextBlock Text="test test" />
            </telerik:RadPane>
        </telerik:RadPaneGroup>
    <telerik:RadPaneGroup x:Name="paneGroup2" telerik:ProportionalStackPanel.RelativeSize="400, 200">
        <telerik:RadPane Header="pane 2"></telerik:RadPane>
    </telerik:RadPaneGroup>
    </telerik:RadSplitContainer>


    Regards,
    Yana
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  6. shay
    shay avatar
    15 posts
    Member since:
    Jun 2015

    Posted 07 Jun Link to this post

    Thanks 
Back to Top
UI for WPF is Visual Studio 2017 Ready