Sunday, 15 September 2013

wpf - Add XAML elements inside WEB VIEW in windows phone 8.1 -


I'm developing a Windows Phone app. In the web view, I load the HTML elements, whenever there is more than the Web view height on the Web, there is no scrolling. My problem is the xaml element in the top of the web view, which is to scroll with the web view scroll.

  & lt; ScrollViewer & gt; & Lt; Grid & gt; & Lt; Grid.RowDefinitions & gt; & Lt; RowDefinition Height = "Auto" /> & Lt; Roadfinion height = "*" /> & Lt; /Grid.RowDefinitions> & Lt; Grid Vertical Alignment = "Top" & gt; & Lt; StackPanel x: name = "xamlelement" margin = "15 20 0 0" & gt; ------- ------- ------- & lt; / Stackpanyel & gt; & Lt; / Grid & gt; & Lt; Grid X: Name = "TestGrid" Grid. Rau = "1" & gt; & Lt; WebView margin = "0 30 0" vertical alignment = "statchch" horizontal alignment = "stretch" x: name = "msgContent" & gt; & Lt; / WebView & gt; & Lt; / Grid & gt; & Lt; / Grid & gt; & Lt; / ScrollViewer & gt;  

When the "msgcontent" webview element scrolls, I want to scroll the "xamlelement" stack panel with the web view

You need to measure the contents of" HTML Page "and set the height of the web view at the measured height then you will have to disable the scroll for the web view.

msgContent.IsHitTestVisible = false;

So that you will create two elements in the natural flow "Your Stack Panel + Web View" within the scroll view. So it will easily scroll like you


No comments:

Post a Comment