How to use Buttons in Xamarin iOS.

Xamarin.iOS
img_xamarin

Buttons are the basic controls that are needed in every basic app in every platform. In Xamarin iOS we have six different types of buttons.

  • System
  • DetailDisclosure
  • InfoDark
  • InfoLight
  • ContactAdd
  • Custom

4.2a

Adding buttons in our view is very simple just drag and drop button control from toolbox.

4.2b

To change type of the button go to the property and select widget, go to the Type and select any of the button types

4.2c

Manually create button in code:

How to handle Click event of Button:

And that’s it. You have all the things that are needed for a button control.

If you like this tutorial then you can download full copy of the code from github

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">