示例#1
0
 private void SetupBindings()
 {
     nameLabel.SetBinding <User> (Label.TextProperty, user => user.Name);
     profilePhoto.SetBinding <User> (Image.SourceProperty, user => user.ProfileImage);
 }
示例#2
0
 private void SetupBindings()
 {
     nameLabel.SetBinding <Moment> (Label.TextProperty, a => a.SenderName);
     timestampLabel.SetBinding <Moment> (Label.TextProperty, a => a.HumanizedTimeSent);
     profilePhoto.SetBinding <Moment> (Image.SourceProperty, a => a.SenderProfileImage);
 }
示例#3
0
 private void SetupBindings()
 {
     nameLabel.SetBinding(Label.TextProperty, nameof(User.Name));
     profilePhoto.SetBinding(Image.SourceProperty, nameof(User.ProfileImage));
 }
示例#4
0
 private void SetupBindings()
 {
     nameLabel.SetBinding(Label.TextProperty, nameof(Moment.SenderName));
     timestampLabel.SetBinding(Label.TextProperty, nameof(Moment.HumanizedTimeSent));
     profilePhoto.SetBinding(Image.SourceProperty, nameof(Moment.SenderProfileImage));
 }