When mixing both Silverlight and DOM elements in an application,is there a strategy for working out where and how to place HTML elements?
For instance, if I had the following:
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Border Grid.Column="0" Width="{Binding LeftWidth}"></Border>
<Border Grid.Column="1" x:Name="HtmlContainer" />
</Grid>
And I want to position my HTML content where the "HtmlContainer" resides (who's size will change)...is there a strategy for calculating these positions? And then passing them to an HTML DOM element?
This is basically what DivElements is doing with the HtmlHost control, whereby they are positioning an IFRAME element.
http://www.divelements.co.uk/silverlight/tools.aspx
I'm wondering how they are doing this...and if there are commonly known strategies for doing this.
Thanks
Phil