Multiple outputs

KonoDioDaKonoDioDa USMember ✭✭

So I'm trying to output these 6 items in my Mainpage.xaml.cs

    public MainPage()
    {
        InitializeComponent();

        var Output = new Item(1, "P", 0);
         Output = new Item(2, "C", 30);
         Output = new Item(3, "B", 40);

        this.BindingContext = Output;

        }

and this is what my Mainpage.Xaml looks like

<StackLayout>

        <Label Text="{Binding Path=Name}"
           HorizontalOptions="CenterAndExpand"/>
    <Label Text="{Binding Path=Price}"
           HorizontalOptions="CenterAndExpand"/>

</StackLayout>

All it will put out is

        I
       6

I'm not sure what I'm doing wrong, I apologize in advance because I am a beginner. I really want it to output all three items.

Answers

Sign In or Register to comment.