コード例 #1
0
 public static void AddButtonWithBinding(this UIActionSheet actionSheet, string title, [NotNull] string bindingExpression, IList <object> sources = null)
 {
     Should.NotBeNull(actionSheet, "actionSheet");
     Should.NotBeNull(bindingExpression, "bindingExpression");
     if (IsOS8)
     {
         actionSheet.AddButtonOS8(title, bindingExpression, sources);
     }
     else
     {
         actionSheet.AddButtonOS7(title, bindingExpression, sources);
     }
 }