Inheritance: MonoTouch.Dialog.Element, IElementSizing
コード例 #1
0
 public override UITableViewCell GetCell(Cell item, UITableView tv)
 {
     var textVm = item.BindingContext as TextMessageViewModel;
     if (textVm != null)
     {
         string text = textVm.ImageId.HasValue ? "<IOS client doesn't support image messages yet ;(>" : (textVm.IsMine ? "Me" : textVm.AuthorName) + ": " + textVm.Text;
         var chatBubble = new ChatBubble(!textVm.IsMine, text);
         return chatBubble.GetCell(tv);
     }
     return base.GetCell(item, tv);
 }