Пример #1
0
 public void SetTitleTextAttributes_Null()
 {
     using (MyView v = new MyView("note"))
         using (var b = new UIBarButtonItem(v)) {
             b.SetTitleTextAttributes(null, UIControlState.Disabled);
         }
 }
Пример #2
0
        public void SetTitleTextAttributes_Null()
        {
            using (MyView v = new MyView("note"))
                using (var b = new UIBarButtonItem(v)) {
#if XAMCORE_3_0
                    b.SetTitleTextAttributes((UIStringAttributes)null, UIControlState.Disabled);
#else
                    b.SetTitleTextAttributes((UITextAttributes)null, UIControlState.Disabled);
#endif
                }
        }