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

One View (Label, Image...) instance can't be added in two or more layouts

$
0
0

If I create an instance of a let's say Label, it can't be added in two or more layouts. This instance should not be dependent on Layouts, that's why I am pretty sure it's a bug. Thanks to this, I can't implement effective view caching.

Minimal working example here:

var test = new Label { Text = "it should work 
:(" }; var a1 = new StackLayout (); var a2 = new StackLayout (); a1.Children.Add (test); a2.Children.Add (test);

Viewing all articles
Browse latest Browse all 58056

Trending Articles



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