Merge branch 'xaml-C#/data-binding' of codefirst.iut.uca.fr:antoine.perederii/Banquale into xaml-C#/data-binding

pull/69/head
Titouan LOUVET 2 years ago
commit 228d57c726

@ -14,11 +14,13 @@
Margin="10, 0, 0, 0"
BackgroundColor="Red"/>-->
<!--<Label Text="{Binding CustomersList[0].Name}" />-->
<Label Text="{Binding Consultant.MessagesList[0].Subject}" />
<ListView ItemsSource="{Binding MessagesList}"
SelectionMode="None">
<ListView ItemsSource="{Binding Consultant.MessagesList}"
SelectionMode="None"
BackgroundColor="Red"
RowHeight="50">
<ListView.ItemTemplate>

@ -11,7 +11,8 @@ public partial class MessageListPage : ContentPage
public MessageListPage()
{
Debug.WriteLine(Mgr.Consultant.MessagesList[0].Subject);
BindingContext = Mgr;
InitializeComponent();
BindingContext = Mgr.Consultant;
}
}

Loading…
Cancel
Save