Silverlight , , , , HTML Interop api. JavaScript, #Content. , , JS Silverlight, System.Windows.Browser.HtmlPage.Window.Invoke.
, - :
... ...
function setContentHeight(height) {
var content = document.getElementById("Content");
if (content != null) {
content.style.height = height;
}
}
... silverlight...
void Page_Loaded(object sender, RoutedEventArgs e)
{
HtmlPage.Window.Invoke("setContentHeight", this.Height);
}