Adding the Shuffle Button to our View Controller in the Storyboard

In this section, we will take a look at how we can add our final button to our View Controller in our Storyboard, which will complete the construction of our user interface for our Sliding Tiles Game. We will also be modifying properties for this control, applying Layout attributes, and specifying Control Events and Target/Action Events.

Let's start by adding a Button object to our View Controller, performing the following steps:

  1. Ensure the SlidingTiles solution is currently open in the Visual Studio for Mac IDE.
  2. Then, from the Toolbox Library, drag a Button control onto the View Controller.
  3. Next, resize the Button control so that it fills the width of the View Controller ...

Get Mastering Xamarin UI Development - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.