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

try to change size of RadSplitContainer

1 Answer 127 Views
Docking
This is a migrated thread and some comments may be shown as answers.
ITA
Top achievements
Rank 1
ITA asked on 02 Apr 2012, 12:22 PM
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

1 Answer, 1 is accepted

Sort by
0
ITA
Top achievements
Rank 1
answered on 02 Apr 2012, 03:25 PM
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

Tags
Docking
Asked by
ITA
Top achievements
Rank 1
Answers by
ITA
Top achievements
Rank 1
Share this question
or