Inheritance: MonoTouch.Dialog.Element
Ejemplo n.º 1
0
 public ButtonCellView(ButtonElement element) : base(UITableViewCellStyle.Value1, skey)
 {
     parent = element;
     this.BackgroundColor = UIColor.Clear;
     btn                = new UIGlassyButton(RectangleF.Empty);
     btn.Color          = parent.Color;
     btn.TitleColor     = parent.TitleColor;
     btn.Title          = element.Caption;
     btn.TouchUpInside += delegate {
         if (parent.Tapped != null)
         {
             parent.Tapped();
         }
     };
     ContentView.Add(btn);
 }
Ejemplo n.º 2
0
 public void UpdateFrom(ButtonElement element)
 {
     btn.Title = element.Caption;
     parent    = element;
 }