Hi there,
I have a setup according to the XAML below in a view, and I want to be able to dock the "ReadingPane" top, left, right or bottom when clicking a button or a menu or whatever (just like the reading pane in MS Outlook), but I cannot figure out how to achieve this with your RadDocking...
I also tried with this XAML, with the DocumentHost in it:
I have a setup according to the XAML below in a view, and I want to be able to dock the "ReadingPane" top, left, right or bottom when clicking a button or a menu or whatever (just like the reading pane in MS Outlook), but I cannot figure out how to achieve this with your RadDocking...
<
UserControl
x:Class
="
Test"
mc:Ignorable
=
"d"
d:DesignHeight
=
"366"
d:DesignWidth
=
"626"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
xmlns:sdk
=
"http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
>
<
Grid
x:Name
=
"LayoutRoot"
Background
=
"White"
>
<
telerik:RadDocking
Name
=
"RadDocking"
HasDocumentHost
=
"False"
>
<
telerik:RadSplitContainer
Name
=
"RadSplitContainerToolBar"
InitialPosition
=
"DockedTop"
Width
=
"Auto"
Height
=
"26"
>
<
telerik:RadPaneGroup
Name
=
"RadGroupToolBar"
>
<
telerik:RadPane
Name
=
"RadPaneToolBar"
PaneHeaderVisibility
=
"Collapsed"
CanUserPin
=
"False"
CanUserClose
=
"False"
CanFloat
=
"False"
CanDockInDocumentHost
=
"False"
/>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
<
telerik:RadSplitContainer
Name
=
"RadSplitContainerGridView"
InitialPosition
=
"DockedLeft"
>
<
telerik:RadPaneGroup
Name
=
"RadGroupGridView"
>
<
telerik:RadPane
Name
=
"RadPaneGridView"
PaneHeaderVisibility
=
"Collapsed"
CanUserPin
=
"False"
>
<
sdk:Frame
HorizontalAlignment
=
"Stretch"
Name
=
"FrameGridView"
VerticalAlignment
=
"Stretch"
/>
</
telerik:RadPane
>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
<
telerik:RadSplitContainer
Name
=
"RadSplitContainerReadingPane"
InitialPosition
=
"DockedRight"
>
<
telerik:RadPaneGroup
Name
=
"RadGroupReadingPane"
>
<
telerik:RadPane
Name
=
"RadPaneReadingPane"
PaneHeaderVisibility
=
"Collapsed"
CanUserPin
=
"False"
>
<
TextBlock
>ReadingPane</
TextBlock
>
</
telerik:RadPane
>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
</
telerik:RadDocking
>
<
telerik:RadButton
Content
=
"Test"
Height
=
"Auto"
HorizontalAlignment
=
"Left"
Margin
=
"39,0,0,0"
Name
=
"radButton1"
VerticalAlignment
=
"Top"
Width
=
"Auto"
Click
=
"radButton1_Click"
/>
<
telerik:RadButton
Content
=
"DockLeft"
Height
=
"Auto"
HorizontalAlignment
=
"Left"
Margin
=
"104,0,0,0"
Name
=
"radButtonDockLeft"
VerticalAlignment
=
"Top"
Width
=
"Auto"
Click
=
"radButtonDockLeft_Click"
/>
<
telerik:RadButton
Content
=
"DockTop"
Height
=
"Auto"
HorizontalAlignment
=
"Left"
Margin
=
"177,0,0,0"
Name
=
"radButtonDockTop"
VerticalAlignment
=
"Top"
Width
=
"Auto"
Click
=
"radButtonDockTop_Click"
/>
<
telerik:RadButton
Content
=
"DockRight"
Height
=
"Auto"
HorizontalAlignment
=
"Left"
Margin
=
"340,-1,0,0"
Name
=
"radButtonDockRight"
VerticalAlignment
=
"Top"
Width
=
"Auto"
Click
=
"radButtonDockRight_Click"
/>
<
telerik:RadButton
Content
=
"DockBottom"
Height
=
"Auto"
HorizontalAlignment
=
"Left"
Margin
=
"237,-1,0,0"
Name
=
"radButtonDockBottom"
VerticalAlignment
=
"Top"
Width
=
"Auto"
Click
=
"radButtonDockBottom_Click"
/>
</
Grid
>
</
UserControl
>
I also tried with this XAML, with the DocumentHost in it:
<
UserControl
x:Class
=
"Test"
mc:Ignorable
=
"d"
d:DesignHeight
=
"366"
d:DesignWidth
=
"626"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
xmlns:sdk
=
"http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
>
<
Grid
x:Name
=
"LayoutRoot"
Background
=
"White"
>
<
telerik:RadDocking
Name
=
"RadDocking"
>
<
telerik:RadDocking.DocumentHost
>
<
telerik:RadSplitContainer
Name
=
"RadSplitContainerGridView"
>
<
telerik:RadPaneGroup
Name
=
"RadGroupGridView"
>
<
telerik:RadPane
Name
=
"RadPaneGridView"
Header
=
"Description"
Visibility
=
"Collapsed"
CanUserClose
=
"False"
>
<
sdk:Frame
HorizontalAlignment
=
"Stretch"
Name
=
"FrameGridView"
VerticalAlignment
=
"Stretch"
/>
</
telerik:RadPane
>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
</
telerik:RadDocking.DocumentHost
>
<
telerik:RadSplitContainer
Name
=
"RadSplitContainerToolBar"
InitialPosition
=
"DockedTop"
Width
=
"Auto"
Height
=
"26"
>
<
telerik:RadPaneGroup
Name
=
"RadGroupToolBar"
>
<
telerik:RadPane
Name
=
"RadPaneToolBar"
PaneHeaderVisibility
=
"Collapsed"
CanUserPin
=
"False"
CanUserClose
=
"False"
CanFloat
=
"False"
CanDockInDocumentHost
=
"False"
/>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
<
telerik:RadSplitContainer
Name
=
"RadSplitContainerReadingPane"
InitialPosition
=
"DockedLeft"
>
<
telerik:RadPaneGroup
Name
=
"RadGroupReadingPane"
>
<
telerik:RadPane
Name
=
"RadPaneReadingPane"
PaneHeaderVisibility
=
"Collapsed"
Header
=
"Reading Pane"
CanUserPin
=
"False"
>
<
sdk:Frame
HorizontalAlignment
=
"Stretch"
Name
=
"FrameReadingPane"
VerticalAlignment
=
"Stretch"
/>
</
telerik:RadPane
>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
</
telerik:RadDocking
>
<
telerik:RadButton
Content
=
"Test"
Height
=
"Auto"
HorizontalAlignment
=
"Left"
Margin
=
"39,0,0,0"
Name
=
"radButton1"
VerticalAlignment
=
"Top"
Width
=
"Auto"
Click
=
"radButton1_Click"
/>
<
telerik:RadButton
Content
=
"DockLeft"
Height
=
"Auto"
HorizontalAlignment
=
"Left"
Margin
=
"104,0,0,0"
Name
=
"radButtonDockLeft"
VerticalAlignment
=
"Top"
Width
=
"Auto"
Click
=
"radButtonDockLeft_Click"
/>
<
telerik:RadButton
Content
=
"DockTop"
Height
=
"Auto"
HorizontalAlignment
=
"Left"
Margin
=
"177,0,0,0"
Name
=
"radButtonDockTop"
VerticalAlignment
=
"Top"
Width
=
"Auto"
Click
=
"radButtonDockTop_Click"
/>
<
telerik:RadButton
Content
=
"DockRight"
Height
=
"Auto"
HorizontalAlignment
=
"Left"
Margin
=
"340,-1,0,0"
Name
=
"radButtonDockRight"
VerticalAlignment
=
"Top"
Width
=
"Auto"
Click
=
"radButtonDockRight_Click"
/>
<
telerik:RadButton
Content
=
"DockBottom"
Height
=
"Auto"
HorizontalAlignment
=
"Left"
Margin
=
"237,-1,0,0"
Name
=
"radButtonDockBottom"
VerticalAlignment
=
"Top"
Width
=
"Auto"
Click
=
"radButtonDockBottom_Click"
/>
</
Grid
>
</
UserControl
>