mahamed
mahamed

Reputation: 141

how to solve z-index of webview control in XAML in metro style app?

i create item details page divided to 3 rows ,i put scrollviewer in row no 2, scrollview contains two pargraph and webview ,when i scroll the page ,webview appear on the row no 3 means that it ovelay row no 3

Upvotes: 3

Views: 2665

Answers (2)

Filip Skakun
Filip Skakun

Reputation: 31724

WebView suffers from an airspace issue. as it is not hosted in the same render target as the rest of the app, but rather in a separate HWND window. There is currently no good way around that other than manually resizing the WebView to make it fit in your boundaries.

You can use a WebViewBrush instead of the WebView, but that has a set of limitations of its own - basically it is just a non-interactive brush. Its documentation shows how you can use it to temporarily show the non-interactive page while some other content is rendered on top of it.

Upvotes: 2

biac
biac

Reputation: 247

Or, if you only want to display a Web page, WebViewBrush may be able to be used.

official sample code: XAML WebView control sample - ScenarioInput4.ComboBox1_DropDownOpened()

Upvotes: 2

Related Questions