示例#1
0
 public void SetButtonStyleAtIndex(ASMultiSelectActionSheetButtonStyle style, int index)
 {
     if (index < Buttons.Count)
     {
         ASMultiSelectActionSheetButton button = Buttons.ElementAt(index);
         button.SetButtonStyleForButton(style);
     }
     else
     {
         Console.WriteLine("ERROR: Index out of bounds.");
         return;
     }
 }
示例#2
0
        private ASMultiSelectActionSheetButton MakeButtonWithTitle(string title, ASMultiSelectActionSheetButtonStyle style, int row)
        {
            ASMultiSelectActionSheetButton b = new ASMultiSelectActionSheetButton();

            b.Layer.MasksToBounds = true;
            b.Layer.BorderWidth   = 0.0f;
            b.SetTitle(title, UIControlState.Normal);
            b.TouchUpInside += ButtonPressed;
            b.Style          = style;
            b.Row            = row;
            b.SetButtonStyleForButton(style);

            return(b);
        }