Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

Header view in ScrollView (WebView)

$
0
0

I'm would like to put a header in the scrollview, which scrolls with the view.

There is a ContentInset property in UIScrollView (UIWebView) for this, usable from a custom renderer. You can add a subview to the scrollview, position it at top, and set the ContentInset to the height of the header. And eventually override LayoutSubView to reposition the header while scrolling if needed.

But i don't know how to add a view hierarchy created in Xaml to this header in the custom renderer. Any idea ?


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>