I am trying to use the RadHtmlPlaceHolder in an SL4 ChildWindow (I know I could use RadWindow, but prefer to only use "non-native" SL componentes unless I really need to.
However, some things don't work as expected. Firstly, the HtmlPlaceHolder is not placed correctly when the ChildWindow is shown initially (through ChildWindow.Show()). If the user maximimises or restores the web browser, the HtmlPlaceHolder is correctly placed.
But when the user drags the ChildWindow around, the HtmlPlaceHolder does not follow - it stays at the same position.
This seems as a common scenario - what do I need to do to get this to work?
Here's the XAML for the ChildWindow, there is no important code-behind.
/Fredrik
However, some things don't work as expected. Firstly, the HtmlPlaceHolder is not placed correctly when the ChildWindow is shown initially (through ChildWindow.Show()). If the user maximimises or restores the web browser, the HtmlPlaceHolder is correctly placed.
But when the user drags the ChildWindow around, the HtmlPlaceHolder does not follow - it stays at the same position.
This seems as a common scenario - what do I need to do to get this to work?
Here's the XAML for the ChildWindow, there is no important code-behind.
<
controls:ChildWindow
x:Class
=
"HtmlPlaceHolderMoveWithChildWindow.ChildWindowWithHtmlPlaceHolder"
xmlns:controls
=
"clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
Width
=
"400"
Height
=
"300"
Title
=
"ChildWindowWithHtmlPlaceHolder"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
SizeChanged
=
"ChildWindow_SizeChanged"
>
<
Grid
x:Name
=
"LayoutRoot"
Margin
=
"2"
>
<
Grid.RowDefinitions
>
<
RowDefinition
/>
<
RowDefinition
Height
=
"Auto"
/>
</
Grid.RowDefinitions
>
<
Button
x:Name
=
"CancelButton"
Content
=
"Cancel"
Click
=
"CancelButton_Click"
Width
=
"75"
Height
=
"23"
HorizontalAlignment
=
"Right"
Margin
=
"0,12,0,0"
Grid.Row
=
"1"
/>
<
Button
x:Name
=
"OKButton"
Content
=
"OK"
Click
=
"OKButton_Click"
Width
=
"75"
Height
=
"23"
HorizontalAlignment
=
"Right"
Margin
=
"0,12,79,0"
Grid.Row
=
"1"
/>
<
telerik:RadHtmlPlaceholder
Height
=
"197"
HorizontalAlignment
=
"Left"
Name
=
"radHtmlPlaceholder1"
VerticalAlignment
=
"Top"
Width
=
"304"
SourceUrl
=
"http://www.telerik.com"
Grid.Row
=
"0"
/>
</
Grid
>
</
controls:ChildWindow
>
/Fredrik