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

Add subviews to view in Forms?

$
0
0

Say I want to create a reusable control consisting of a webview and a couple labels.

My initial thought was to create a subclass of view, add the subviews I need (labels, webview), and add the control on a Page. However I can't seem to figure out how to add the subviews to my control. In Xamarin.iOS, I was able to use Add or AddSubview, but I don't see those methods in my Forms view. How do I add these subviews to my parent view control? Or, am I going about this in the wrong way entirely?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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