Hi,
We are having trouble getting a RadDock in WPF to resize to the height/width of it's container. We'd like it to be 100% of the grid row's height and width so it adjusts to the size of the window as it's the main area users will work in.
We want a RadRibbon to appear at the top of the screen in a manner where the user cannot remove it then have the docking area for windows appear beneath that taking up the remaining space in height.
We are having trouble getting a RadDock in WPF to resize to the height/width of it's container. We'd like it to be 100% of the grid row's height and width so it adjusts to the size of the window as it's the main area users will work in.
We want a RadRibbon to appear at the top of the screen in a manner where the user cannot remove it then have the docking area for windows appear beneath that taking up the remaining space in height.
<
Window
x:Class
=
"Company.ApplicationName.UI.DesktopClient.Windows.Main"
xmlns:controls
=
"clr-namespace:Company.ApplicationName.UI.DesktopClient.Controls"
Title
=
"Main"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
WindowStartupLocation
=
"CenterScreen"
WindowState
=
"Maximized"
Height
=
"600"
Width
=
"700"
Icon
=
"/Company.ApplicationName.UI.DesktopClient;component/Resources/application_icon.png"
>
<
Grid
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"*"
/>
</
Grid.RowDefinitions
>
<
telerik:RadRibbonBar
Margin
=
"0,0,0,0"
Name
=
"radRibbonBar1"
VerticalAlignment
=
"Top"
Title
=
"Main Dashboard"
ApplicationName
=
"Available To Promise"
ApplicationButtonImageSource
=
"/Company.ApplicationName.UI.DesktopClient;component/Resources/application_logo.png"
ClipToBounds
=
"True"
>
<
telerik:RadRibbonBar.ApplicationMenu
>
<
telerik:ApplicationMenu
>
<
telerik:RadRibbonButton
LargeImage
=
"/Company.ApplicationName.UI.DesktopClient;component/Resources/MenuItems/save.png"
Text
=
"Save"
/>
<
telerik:RadRibbonButton
LargeImage
=
"/Company.ApplicationName.UI.DesktopClient;component/Resources/MenuItems/exit.png"
Text
=
"Exit"
/>
</
telerik:ApplicationMenu
>
</
telerik:RadRibbonBar.ApplicationMenu
>
<
telerik:RadRibbonTab
Header
=
"Home"
>
<
telerik:RadRibbonGroup
Header
=
"Clipboard"
>
<
telerik:RadRibbonSplitButton
Text
=
"Paste"
LargeImage
=
"/Company.ApplicationName.UI.DesktopClient;component/Resources/MenuItems/paste.png"
Size
=
"Large"
telerik:ScreenTip.Title
=
"Paste(Ctrl+V)"
telerik:ScreenTip.Description
=
"Paste the contents the Clipboard."
>
<
telerik:RadRibbonSplitButton.DropDownContent
>
<
telerik:RadContextMenu
BorderThickness
=
"0"
>
<
telerik:RadMenuItem
Header
=
"Paste"
/>
</
telerik:RadContextMenu
>
</
telerik:RadRibbonSplitButton.DropDownContent
>
</
telerik:RadRibbonSplitButton
>
</
telerik:RadRibbonGroup
>
</
telerik:RadRibbonTab
>
<
telerik:RadRibbonTab
Header
=
"Admin"
>
</
telerik:RadRibbonTab
>
<
telerik:RadRibbonTab
Header
=
"View"
/>
</
telerik:RadRibbonBar
>
<
telerik:RadRibbonTab
Header
=
"Planning"
>
</
telerik:RadRibbonTab
>
<
telerik:RadRibbonTab
Header
=
"Reports"
>
</
telerik:RadRibbonTab
>
<
telerik:RadRibbonTab
Header
=
"Modeling Scenarios"
>
</
telerik:RadRibbonTab
>
<
Grid
Grid.Row
=
"1"
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"*"
/>
</
Grid.RowDefinitions
>
<
telerik:RadDocking
ClipToBounds
=
"True"
Margin
=
"0,0,0,0"
AllowUnsafeMode
=
"True"
VerticalAlignment
=
"Stretch"
HorizontalContentAlignment
=
"Stretch"
VerticalContentAlignment
=
"Stretch"
>
<
telerik:RadDocking.DocumentHost
>
<
telerik:RadSplitContainer
>
<
telerik:RadPaneGroup
>
<
telerik:RadPane
Header
=
"Description"
>
<
TextBlock
TextWrapping
=
"Wrap"
Text
=
"On the Documents tab above press Ctrl + Mouse Left button to display the Popup Menu. You can use the same combination on every tab."
/>
</
telerik:RadPane
>
<
telerik:RadPane
Header
=
"NonDraggable"
CanFloat
=
"False"
>
<
TextBlock
TextWrapping
=
"Wrap"
Text
=
"This pane cannot be dragged, because it has its property CanFloat set 'False'."
/>
</
telerik:RadPane
>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
</
telerik:RadDocking.DocumentHost
>
<
telerik:RadSplitContainer
InitialPosition
=
"DockedLeft"
VerticalAlignment
=
"Bottom"
>
<
telerik:RadPaneGroup
>
<
telerik:RadPane
Header
=
"Progress/Schedule"
>
<
controls:ProgressBar
></
controls:ProgressBar
>
</
telerik:RadPane
>
<
telerik:RadPane
Header
=
"Server Explorer"
/>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
<
telerik:RadSplitContainer
InitialPosition
=
"DockedRight"
>
<
telerik:RadPaneGroup
>
<
telerik:RadPane
Header
=
"Properties"
/>
<
telerik:RadPane
Header
=
"Solution Explorer"
/>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
<
telerik:RadSplitContainer
InitialPosition
=
"DockedBottom"
>
<
telerik:RadPaneGroup
>
<
telerik:RadPane
Header
=
"Output"
/>
<
telerik:RadPane
Header
=
"Error List"
/>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
</
telerik:RadDocking
>
</
Grid
>
</
Grid
>
</
Window
>