I am currently attempting to put an html page within a usercontrol in silverlight. I am playing the HTMLPlaceholder in a grid and that is all that is in the usercontrol. I set the value in the constructor for what it is pointing at.
However there is about a 1 in 10 chance of the website actually showing up when I go to that view. Sometimes its immediate, sometimes after coming back. Also some view changes that remove the background as well suddenly reveal that the page was already loaded. Also sometimes the the page loads a tiny bar at the top of the screen completely outside the grid its contained in. It is very very erratic.
I have tried using RadWindow and I can get that to work, but it must look like it is a display page opening as a result of a "tab" choice.
Also I am using version v.2011.1.419.1040.
*note regarding xaml* The original version I tried was just <RadHtmlPlaceholder x:Name="name"/> with me setting the Uri from the CS file.
Also I have windowless set to true. and set the aspx file's class/id definitions to the proper settings.
Code is below
However there is about a 1 in 10 chance of the website actually showing up when I go to that view. Sometimes its immediate, sometimes after coming back. Also some view changes that remove the background as well suddenly reveal that the page was already loaded. Also sometimes the the page loads a tiny bar at the top of the screen completely outside the grid its contained in. It is very very erratic.
I have tried using RadWindow and I can get that to work, but it must look like it is a display page opening as a result of a "tab" choice.
Also I am using version v.2011.1.419.1040.
*note regarding xaml* The original version I tried was just <RadHtmlPlaceholder x:Name="name"/> with me setting the Uri from the CS file.
Also I have windowless set to true. and set the aspx file's class/id definitions to the proper settings.
Code is below
<
UserControl
x:Class
=
"*structure*Control"
xmlns:telerik
=
"clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
xmlns:telerikGridView
=
"clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"
xmlns:telerikUri
=
"http://schemas.telerik.com/2008/xaml/presentation"
xmlns:NineGrid
=
"clr-namespace:NineGrid;assembly=NineGrid"
x:Name
=
"userControl"
mc:Ignorable
=
"d"
d:DesignHeight
=
"640"
d:DesignWidth
=
"1024"
>
<
Grid
x:Name
=
"LayoutRoot"
Background
=
"Transparent"
VerticalAlignment
=
"Stretch"
HorizontalAlignment
=
"Stretch"
>
<
telerikUri:RadHtmlPlaceholder
x:Name
=
"BPage"
Canvas.ZIndex
=
"100000"
KeepContentInMemory
=
"True"
Height
=
"auto"
Width
=
"auto"
/>
</
Grid
>
</
UserControl
>