Hi-
I have a RadHtmlPlaceHolder that displays the HTML source content within a Silverlight ChildWindow. The 'windowless' and 'RespectSilverlightLayoutMeasure' properties are set to true.
There is couple of radio buttons in the childwindow to flip between the silverlight and HTML view. If the silverlight view is ON when the childwindow is closed, everything works fine. However, if the HTML View(RadHtmlPlaceHolder View) is ON, the childwindow closes without any problem but leaves the HTML painted in the screen/browser. The browser must be refreshed or closed to remove the Html view.
Is there any property that could be used to close the view seamlessly?
Xaml used:
<ChildWindow>
<telerik:RadBusyIndicator x:Name="BusySpinner" Background="Transparent" BusyContent="" Style="{StaticResource RadBusyIndicatorStyleYellow}" >
<StackPanel x:Name="HostRoot" >
<StackPanel x:Name="xamlUtilitiesPanel" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0, 0, 10, 0" >
<RadioButton x:Name="xamlRadioBtnSilverlightView" Content="Silverlight View" GroupName="View" Margin="0, 0, 10, 0" IsChecked="True" Checked="OnSilverlightViewChecked" ></RadioButton>
<RadioButton x:Name="xamlRadioBtnMVCView" Content="MVC View" GroupName="View" Margin="0, 0, 10, 0" Checked="OnMVCViewChecked" Visibility="{Binding Path=HasMVCView, Converter={StaticResource VisibilityConverter}}"></RadioButton>
</StackPanel>
<StackPanel x:Name="xamlSilverlightViewHolder">
</StackPanel>
<StackPanel x:Name="xamlMVCViewHolder" Visibility="Collapsed" >
<telerik:RadHtmlPlaceholder x:Name="xamlHtmlPlaceHldr" Width="1024" Height="768"
Margin="10" HtmlSource="{Binding Path=MVCViewResultHTML}"
KeepContentInMemory="True" RespectSilverlightLayoutMeasure="True"/>
</StackPanel>
</StackPanel>
</telerik:RadBusyIndicator>
</ChildWindow>
Please let me know if you want any more details.
I have a RadHtmlPlaceHolder that displays the HTML source content within a Silverlight ChildWindow. The 'windowless' and 'RespectSilverlightLayoutMeasure' properties are set to true.
There is couple of radio buttons in the childwindow to flip between the silverlight and HTML view. If the silverlight view is ON when the childwindow is closed, everything works fine. However, if the HTML View(RadHtmlPlaceHolder View) is ON, the childwindow closes without any problem but leaves the HTML painted in the screen/browser. The browser must be refreshed or closed to remove the Html view.
Is there any property that could be used to close the view seamlessly?
Xaml used:
<ChildWindow>
<telerik:RadBusyIndicator x:Name="BusySpinner" Background="Transparent" BusyContent="" Style="{StaticResource RadBusyIndicatorStyleYellow}" >
<StackPanel x:Name="HostRoot" >
<StackPanel x:Name="xamlUtilitiesPanel" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0, 0, 10, 0" >
<RadioButton x:Name="xamlRadioBtnSilverlightView" Content="Silverlight View" GroupName="View" Margin="0, 0, 10, 0" IsChecked="True" Checked="OnSilverlightViewChecked" ></RadioButton>
<RadioButton x:Name="xamlRadioBtnMVCView" Content="MVC View" GroupName="View" Margin="0, 0, 10, 0" Checked="OnMVCViewChecked" Visibility="{Binding Path=HasMVCView, Converter={StaticResource VisibilityConverter}}"></RadioButton>
</StackPanel>
<StackPanel x:Name="xamlSilverlightViewHolder">
</StackPanel>
<StackPanel x:Name="xamlMVCViewHolder" Visibility="Collapsed" >
<telerik:RadHtmlPlaceholder x:Name="xamlHtmlPlaceHldr" Width="1024" Height="768"
Margin="10" HtmlSource="{Binding Path=MVCViewResultHTML}"
KeepContentInMemory="True" RespectSilverlightLayoutMeasure="True"/>
</StackPanel>
</StackPanel>
</telerik:RadBusyIndicator>
</ChildWindow>
Please let me know if you want any more details.