This is a migrated thread and some comments may be shown as answers.

HTMLPlaceHolder in RadWindow

1 Answer 24 Views
HTMLPlaceHolder
This is a migrated thread and some comments may be shown as answers.
Mikael
Top achievements
Rank 1
Mikael asked on 17 Dec 2010, 04:53 PM
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.

<controls:ChildWindow x:Class="HtmlPlaceHolderMoveWithChildWindow.ChildWindowWithHtmlPlaceHolder"
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           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

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 22 Dec 2010, 03:43 PM
Hello Fredrik,

Unfortunately there are known issues when hosting the RadHtmlPlaceHolder in a ChildWindow. Therefore in this case it is better to use a RadWindow to host the RadHtmlPlaceHolder.

However, I added the item in our PITS where you can follow its progress. Please accept our apology for the caused inconvenience.

Kind regards,
Tina Stancheva
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
HTMLPlaceHolder
Asked by
Mikael
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or