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" Margin="10, 0, 0, 0"
BackgroundColor="Red"/>--> BackgroundColor="Red"/>-->
<!--<Label Text="{Binding CustomersList[0].Name}" />--> <Label Text="{Binding Consultant.MessagesList[0].Subject}" />
<ListView ItemsSource="{Binding MessagesList}" <ListView ItemsSource="{Binding Consultant.MessagesList}"
SelectionMode="None"> SelectionMode="None"
BackgroundColor="Red"
RowHeight="50">
<ListView.ItemTemplate> <ListView.ItemTemplate>

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

Loading…
Cancel
Save