Anand Jothi

Anand Jothi

  • NA
  • 1
  • 978

Add XAML elements inside WEB VIEW in windows phone 8.1

Mar 19 2015 8:04 AM
Am developing windows phone app.In web view I load html elements,in which whenever content exceeds web view height there is scroll with no issues. My problem is am having xaml elements in the top of web view,which have to scroll along with web view scroll.
 
Sample: 
 
<ScrollViewer>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid VerticalAlignment="Top" >
<StackPanel x:name="xamlelement" Margin="15 20 0 0">
-------
-------
-------
</StackPanel>
</Grid>
<Grid x:Name="testgrid" Grid.Row="1">
<WebView Margin="0 30 0 0" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" x:Name="msgContent" >
</WebView>
</Grid>
</Grid>
</ScrollViewer>
 
 
                     when "msgContent" webview element scrolls I want "xamlelement" stack panel to scroll along with web view.