try to change size of RadSplitContainer

2 posts, 0 answers
  1. ITA
    ITA avatar
    383 posts
    Member since:
    Aug 2009

    Posted 02 Apr 2012 Link to this post

    Hi @ All,

    i have a little Problem with the RadDocking Control. If have three containers: Top Right and Bottom. When i run the application and want to change the size of andy Container, by click and mouse moove this container gets the maximum size and all other Container are no longer visible. Please take a look to the two png-files.

    Where ist the Problem? Here ist the xaml:

    <telerik:RadDocking x:Name="Docking" telerikQuickStart:ThemeAwareBackgroundBehavior.IsEnabled="True"  BorderThickness="0" Padding="0" telerik:StyleManager.Theme="Summer" Grid.Row="1"
                        FontFamily="Calibri" FontSize="14" Margin="0,5,0,0">
         
        <telerik:RadDocking.DocumentHost>
            <telerik:RadSplitContainer InitialPosition="DockedTop">
                <telerik:RadPaneGroup x:Name="DocumentGroup" AllowDragOverTab="True">
                    <telerik:RadPane x:Name="allgemein" Header="{Binding Source={StaticResource Lang}, XPath=KundenDetailAllgemein/@Header}" telerik:RadDocking.SerializationTag="LayoutXml" telerik:RadDocking.FloatingSize="450, 400">                                          
                    </telerik:RadPane>
     
                    <telerik:RadPane Header="{Binding Source={StaticResource Lang}, XPath=KundenDEtailKarte/@Header}" telerik:RadDocking.SerializationTag="DocumentPane">
                        <Frame x:Name="Map_frm" Source="../Controls/Map/Map.xaml" />
                    </telerik:RadPane>
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
        </telerik:RadDocking.DocumentHost>                           
         
        <telerik:RadSplitContainer InitialPosition="DockedRight">
            <telerik:RadPaneGroup>
                <telerik:RadPane Header="Pane Right 1" telerik:RadDocking.SerializationTag="PaneRight1">
                    <telerik:RadTreeView>
                        <telerik:RadTreeViewItem Header="RootItem">
                            <telerik:RadTreeViewItem Header="Item1" />
                            <telerik:RadTreeViewItem Header="Item2">
                                <telerik:RadTreeViewItem Header="Item21" />
                                <telerik:RadTreeViewItem Header="Item22" />
                                <telerik:RadTreeViewItem Header="Item23">
                                    <telerik:RadTreeViewItem Header="Item231" />
                                </telerik:RadTreeViewItem>
                            </telerik:RadTreeViewItem>
                            <telerik:RadTreeViewItem Header="Item3" />
                        </telerik:RadTreeViewItem>
                    </telerik:RadTreeView>
                </telerik:RadPane>
            </telerik:RadPaneGroup>
        </telerik:RadSplitContainer>
     
         
        <telerik:RadSplitContainer InitialPosition="DockedBottom">
            <telerik:RadPaneGroup>
                <telerik:RadPane Header="{Binding Source={StaticResource Lang}, XPath=KundenDetailAktion/@Header}" telerik:RadDocking.SerializationTag="PaneTop1">                                                                              
                     
                </telerik:RadPane>
            </telerik:RadPaneGroup>
        </telerik:RadSplitContainer>                           
    </telerik:RadDocking>

    Thanks a lot
    regards
    ww
  2. ITA
    ITA avatar
    383 posts
    Member since:
    Aug 2009

    Posted 02 Apr 2012 Link to this post

    Problem solved!

    The problem was the MouseLeftButtonDown="Window_MouseLeftButtonDown" Event of the MainWindow:

    Event:
     DragMove();

    If you use the RadDocking Control and DragMove you have to change the void:
    if (e.ChangedButton == 0)
        {
             RadDocking RD = e.OriginalSource as RadDocking;
             if (RD == null)  { DragMove();}
        }

    have fun

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top