Hi,
In the Q1 version of the Docking control I used floating panels in nested docking controls. The panels were positioned relative to the docking control they were placed in. But in the Q2 version the panels are positioned relative to the silverlight control/window.
So position (0,0) is in Q1 the topleft corner of the docking control, but position (0,0) in Q2 is the topleft corner of the window.
Is there a way to fix this and position the panels relative to their parent?
Is this a bug, or by design and do I have to find another way to deal with this?
The following XAML snippet illustrates the problem:
In the Q1 version of the Docking control I used floating panels in nested docking controls. The panels were positioned relative to the docking control they were placed in. But in the Q2 version the panels are positioned relative to the silverlight control/window.
So position (0,0) is in Q1 the topleft corner of the docking control, but position (0,0) in Q2 is the topleft corner of the window.
Is there a way to fix this and position the panels relative to their parent?
Is this a bug, or by design and do I have to find another way to deal with this?
The following XAML snippet illustrates the problem:
<
Grid
x:Name
=
"LayoutRoot"
Background
=
"White"
>
<
telerik:RadDocking
x:Name
=
"radDocking1"
Background
=
"White"
BorderThickness
=
"0"
BorderBrush
=
"{x:Null}"
Padding
=
"0"
Margin
=
"0,0,0,0"
Grid.Row
=
"1"
Grid.Column
=
"0"
>
<
telerik:RadDocking.DocumentHost
>
<
telerik:RadSplitContainer
>
<
telerik:RadPaneGroup
Name
=
"Root"
TabStripPlacement
=
"Top"
>
<
telerik:RadPane
Name
=
"pane_1"
Title
=
"Pane 1"
CanUserPin
=
"False"
CanUserClose
=
"False"
CanDockInDocumentHost
=
"True"
>
<
telerik:RadPane.Content
>
<
telerik:RadDocking
AllowUnsafeMode
=
"True"
Background
=
"White"
>
<
telerik:RadSplitContainer
InitialPosition
=
"FloatingOnly"
>
<
telerik:RadPaneGroup
ScrollViewer.HorizontalScrollBarVisibility
=
"Auto"
ScrollViewer.VerticalScrollBarVisibility
=
"Auto"
>
<
telerik:RadDocumentPane
Name
=
"rdp_pane1"
telerik:RadDocking.FloatingSize
=
"300,500"
telerik:RadDocking.FloatingLocation
=
"0,0"
Header
=
"Floating pane 1"
CanDockInDocumentHost
=
"False"
CanUserPin
=
"False"
CanUserClose
=
"False"
/>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
</
telerik:RadDocking
>
</
telerik:RadPane.Content
>
</
telerik:RadPane
>
<
telerik:RadPane
Name
=
"HistorischBodemBestand"
Title
=
"HistorischBodemBestand"
CanUserPin
=
"False"
CanUserClose
=
"False"
CanDockInDocumentHost
=
"True"
>
<
telerik:RadPane.Content
>
<
telerik:RadDocking
AllowUnsafeMode
=
"True"
Background
=
"White"
>
<
telerik:RadSplitContainer
InitialPosition
=
"FloatingOnly"
>
<
telerik:RadPaneGroup
ScrollViewer.HorizontalScrollBarVisibility
=
"Auto"
ScrollViewer.VerticalScrollBarVisibility
=
"Auto"
>
<
telerik:RadDocumentPane
Name
=
"rdp_pane2"
telerik:RadDocking.FloatingSize
=
"200,200"
telerik:RadDocking.FloatingLocation
=
"0,0"
Header
=
"Floating pane 2"
CanDockInDocumentHost
=
"False"
CanUserPin
=
"False"
CanUserClose
=
"False"
/>
</
telerik:RadPaneGroup
>
<
telerik:RadPaneGroup
ScrollViewer.HorizontalScrollBarVisibility
=
"Auto"
ScrollViewer.VerticalScrollBarVisibility
=
"Auto"
>
<
telerik:RadDocumentPane
Name
=
"rdp_pane3"
telerik:RadDocking.FloatingSize
=
"300,300"
telerik:RadDocking.FloatingLocation
=
"200,0"
Header
=
"Floating pane 3"
CanDockInDocumentHost
=
"False"
CanUserPin
=
"False"
CanUserClose
=
"False"
/>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
</
telerik:RadDocking
>
</
telerik:RadPane.Content
>
</
telerik:RadPane
>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
</
telerik:RadDocking.DocumentHost
>
<
telerik:RadSplitContainer
x:Name
=
"topPane"
InitialPosition
=
"DockedTop"
>
<
telerik:RadPaneGroup
>
<
telerik:RadDocumentPane
/>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
<
telerik:RadSplitContainer
InitialPosition
=
"FloatingDockable"
telerik:RadDocking.FloatingSize
=
"300,300"
VerticalAlignment
=
"Top"
HorizontalAlignment
=
"Right"
>
<
telerik:RadPaneGroup
>
<
telerik:RadDocumentPane
>
<
Grid
Width
=
"300"
Height
=
"300"
/>
</
telerik:RadDocumentPane
>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
</
telerik:RadDocking
>
</
Grid
>