상속: UIButton
예제 #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);
 }
예제 #2
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);
 }