Reputation: 1017
I'm assuming that the Xamarin.Forms WebView implementation on both iOS and Android would use the "native" browser for each platform.
Does that enable other Xamarin.Forms controls to be layered over the top if it?
I am not sure because I have used other toolkits which use "lightweight" controls on each platform and thus cannot be layered over a "heavyweight" control but I also believe Xamarin.Forms uses all native components on each platform (thus potentially making this possible).
Could someone please clarify for me?
Thanks!
Upvotes: 3
Views: 619
Reputation: 364
Yes this is possible, even though it is not a good idea to cover any part of the webview control for obvious reasons.
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="9*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<WebView VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand"/>
<Image Aspect="AspectFit" Source="redball.png" HeightRequest="20" WidthRequest="20"
VerticalOptions="StartAndExpand" HorizontalOptions="CenterAndExpand"/>
<Frame x:Name="frmFooter" CornerRadius="0" Padding="0" HasShadow="False" Grid.Row="1"/>
</Grid>
This sample places a tiny red ball on the top-center of your webview control.
I hope this helps.
Upvotes: 3