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

Populating ScrollView problem!

$
0
0

Hi guys!

i have a problem to add anything into the scrollview. if you cant find anything wrong in this code feel free to give me a lead! I get the following error = target of get_children is NULL (NULLRefrenceException)

.xaml file

<ContentPage >
   <ScrollView>
      <StackLayout x:Name="PostList">


      </StackLayout>
   </ScrollView>


</ContentPage>

.xaml.cs file

PostList.Children.Add(new Xamarin.Forms.BoxView { BackgroundColor = Color.Black });


Viewing all articles
Browse latest Browse all 91519

Trending Articles



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