insanelab.com insanelab.com

March 9, 2018 - Mobile Development

Get Familiar with Xamarin Workbooks: Learn to Code Faster and Easier

Nowadays you can learn how to code in many ways. Everywhere you look you’ll find tutorials, code samples, videos, and blogs written by passionate and knowledgeable people.

They are all great sources of learning new skills.

But what would you say to a more practical way of improving your C# and Xamarin coding abilities?

Xamarin Workbooks is Microsoft’s idea of making the process simpler, easier, and faster. Workbooks provide you with code samples for learning, experimenting, and creating. All of that is supported by IntelliSense technology.

Read also: The Most Comprehensive Guide to Xamarin Test Cloud

Don’t want to learn?

Have us create your app for you.

You Need This to Get Started:

  • Install Xamarin Workbooks
  • Meet the requirements below with your Windows or Mac machine:

Xamarin Workbooks

Let’s Begin with Xamarin Workbooks Samples

The process is quite simple:

  • Go to Xamarin Workbooks samples page
  • Scroll down a bit until you notice the list of samples:
    • Android
    • Azure
    • C#
    • iOS
    • Graphics
    • Mac
    • WPF
    • Xamarin.Forms
  • Choose the last one

Then, select Hello Xamarin.Forms and download the sample.

Xamarin Workbooks

The downloaded file should look like that:

Xamarin Workbooks

Xamarin Workbook should open, and iOS emulator should be launched automatically. You should see this window:

Xamarin Workbooks

While scrolling down you’ll notice descriptions with code snippets. For me, that’s really useful – instead of explanations I get actual code samples.

There’s more, though.

When you look closer at this small fragment of the code…

Xamarin Workbooks

… You’ll notice three small icons in the lower right corner. Here’s what they do:

  • The plus icon will let you add a new C# code snippet.
  • The button in the middle is responsible for adding space for a new description if you’d like to write about what’s happening in a specific fragment of code.
  • Pressing the X icon will delete a documentation fragment

You can modify both code samples and the documentation.

Run Selected Code Fragments and See the Results Instantly

With Xamarin Workbooks you can test and check each code snippet instantly.

Xamarin Workbooks

Xamarin Workbooks 13

How About Creating Your Own Workbook?

By now you know how to download code samples and experiment with them.

But how about creating your own Workbook? If you’re interested, you can review this documentation. The process is quite simple and supported by IntelliSense so that you can see the hints available in Visual Studio or Xamarin Studio.

Honestly – that’s it!

I hope this short tutorial will make it easier for you to start with Xamarin Workbooks and get your C# game going!

Didn’t come here to learn, did you?

If you’re looking for someone to create your app, start here.

What is your challenge?

Tell us with any means provided. We'd love to hear from you!