or
<telerik:InformationLayer x:Name="MyLayer"> <telerik:InformationLayer.Reader> <telerik:SqlGeospatialDataReader x:Name="MyReader" Source="{Binding}" GeospatialPropertyName="RegionGeometry" ToolTipFormat="RegionName"> </telerik:SqlGeospatialDataReader> </telerik:InformationLayer.Reader> <telerik:InformationLayer.ShapeFill> <telerik:MapShapeFill Fill="#50CCFF66" Stroke="Orange" StrokeThickness="3" /> </telerik:InformationLayer.ShapeFill> </telerik:InformationLayer>
<
telerik:RadDocking
Grid.Row
=
"1"
HasDocumentHost
=
"False"
x:Name
=
"radDocking"
AllowUnsafeMode
=
"True"
VerticalAlignment
=
"Stretch"
VerticalContentAlignment
=
"Stretch"
ClipToBounds
=
"True"
Margin
=
"0,0,0,0"
PaneStateChange
=
"radDocking_PaneStateChange"
>
<
telerik:RadSplitContainer
InitialPosition
=
"DockedTop"
Orientation
=
"Horizontal"
VerticalAlignment
=
"Stretch"
VerticalContentAlignment
=
"Stretch"
telerik:RadDocking.FloatingSize
=
"26,300"
telerik:RadDocking.FloatingLocation
=
"7,200"
>
<
telerik:RadPaneGroup
Name
=
"LeftPaneGroup"
telerik:ProportionalStackPanel.RelativeSize
=
"20, 500"
>
<
telerik:RadPane
PaneHeaderVisibility
=
"Collapsed"
Name
=
"LeftPane"
prism:RegionManager.RegionName
=
"LeftRegion"
>
</
telerik:RadPane
>
</
telerik:RadPaneGroup
>
<
telerik:RadPaneGroup
telerik:ProportionalStackPanel.RelativeSize
=
"80, 500"
>
<
telerik:RadPane
Name
=
"ContentPane"
VerticalAlignment
=
"Stretch"
VerticalContentAlignment
=
"Stretch"
>
<
ContentControl
prism:RegionManager.RegionName
=
"ContentRegion"
/>
</
telerik:RadPane
>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
</
telerik:RadDocking
>
private
void
radDocking_PaneStateChange(
object
sender, Telerik.Windows.RadRoutedEventArgs e)
{
if
(e.OriginalSource == LeftPane)
{
if
(LeftPane.IsFloating)
{
LeftPane.CanUserClose =
false
;
LeftPane.MaxWidth = 26;
LeftPane.Width = 26;
LeftPane.PaneHeaderVisibility = System.Windows.Visibility.Collapsed;
ToolWindow window = LeftPane.ParentOfType<ToolWindow>();
if
(window ==
null
)
{
window = (((LeftPane.Parent
as
RadPaneGroup).Parent
as
RadSplitContainer).Parent)
as
ToolWindow;
}
window.Width = 26;
window.MaxWidth = 26;
LeftPaneGroup.Width = 26;
LeftPaneGroup.MaxWidth = 26;
}
}
}