I have a Floating Radpane (2.gif) and I want this to fit the content inside. Is it possible to make it behave like the 1.gif grid?
What I want is for the width and height to be dynamic depending on the content.
The RadPane structure is as follows:
<
telerik:RadDocking
x:Name
=
"RadDockingFloating"
>
<
telerik:RadSplitContainer
x:Name
=
"RadSplitContainer"
Visibility
=
"Collapsed"
telerik:RadDocking.FloatingLocation
=
"500,50"
InitialPosition
=
"FloatingOnly"
>
<
telerik:RadPaneGroup
>
<
telerik:RadPane
IsHidden
=
"True"
ContextMenuTemplate
=
"{x:Null}"
TitleTemplate
=
"{StaticResource TitleTemplate}"
x:Name
=
"TooltipHeader"
CanUserPin
=
"False"
>
<
Grid
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"90"
/>
<
RowDefinition
Height
=
"20"
/>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"*"
/>
</
Grid.RowDefinitions
>
<
StackPanel
Grid.Row
=
"0"
>
<
TextBlock
TextWrapping
=
"Wrap"
Margin
=
"5,3,0,0"
x:Name
=
"OhlcChartTextBlock"
/>
</
StackPanel
>
<
Border
Grid.Row
=
"1"
BorderBrush
=
"Black"
VerticalAlignment
=
"Top"
BorderThickness
=
"0 1 0 0"
>
<
StackPanel
>
<
TextBlock
TextWrapping
=
"Wrap"
Margin
=
"5,3,0,0"
x:Name
=
"VolumeChartTextBlock"
/>
</
StackPanel
>
</
Border
>
<
Border
x:Name
=
"TooltipFloatBorder"
Grid.Row
=
"2"
Margin
=
"0, 3, 0, 0"
BorderBrush
=
"Black"
VerticalAlignment
=
"Top"
BorderThickness
=
"0 1 0 0"
>
<
StackPanel
x:Name
=
"TooltipFloat"
>
</
StackPanel
>
</
Border
>
<
Border
Grid.Row
=
"3"
Margin
=
"0, 3, 0, 0"
BorderBrush
=
"Black"
VerticalAlignment
=
"Top"
BorderThickness
=
"0 1 0 0"
>
<
StackPanel
>
<
TextBlock
TextWrapping
=
"Wrap"
Margin
=
"5,3,0,0"
x:Name
=
"Order"
/>
</
StackPanel
>
</
Border
>
</
Grid
>
</
telerik:RadPane
>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
</
telerik:RadDocking
>
Thank you
Gerard.