title: Add UIBarButtonItem to navigation Bar in Xamarin IOS
body: <p>How to add custom UIBarButtonItem to navigationbar rightside.</p>
  
  <pre><code>public UIBarButtonItem btn_Cart {get; set;}
  
  public DetailedController (){
  string buttonTitle = "One";
  btn_Cart = new UIBarButtonItem (buttonTitle, UIBarButtonItemStyle.Bordered, null);
  btn_Cart.Clicked += (s, e) =&gt; { new UIAlertView ("click!", "btnOne clicked", null, "OK", null).Show (); 
  };
  
  }
  
  public override void ViewDidLoad (){
  base.ViewDidLoad ();
  // Added btn_Cart to RightSide Of Naviation Bar.
  this.NavigationItem.SetRightBarButtonItem (btn_Cart, true);
  }
  </code></pre>
  
  <p>Its not added to navigationItem. </p>
  
  <p>If I change my code to</p>
  
  <pre><code>public override void ViewDidLoad (){
  this.NavigationItem.SetRightBarButtonItem(
                  new UIBarButtonItem(UIImage.FromBundle ("Image.png")
                      , UIBarButtonItemStyle.Plain
                      , (sender,args) =&gt; {
  new UIAlertView ("click!", "btnOne clicked", null, "OK", null).Show ();
                      })
                  , true);
  }
  </code></pre>
  
  <p>// Its Added to NavigationItem at right side.</p>
  
  <pre><code>public class DetailedTabBarController : UITabBarController {
  
          public override void ViewDidLoad (){
              base.ViewDidLoad ();
              this.NavigationItem.SetRightBarButtonItem(
              new UIBarButtonItem(UIImage.FromBundle ("/Images/Image.png"),
                      UIBarButtonItemStyle.Plain, 
                      (sender,args) =&gt; {
                  Console.WriteLine("Do Some Action!");
                  }), true);
              }
  }
  </code></pre>
  
  <p>I do not want to add like this.  </p>
  
  <p>Can any one advice me to added UIBarButtonItem to NavigationItem at right side.
  @All
  Thanks In Advance</p>