At Webigence we are a specialist programming company that consult on, develop and support large scale applications for established businesses. We specialise in ASP.NET, Xamarin and Microsoft Azure.
Our developers are enjoying creating a few apps for clients using the Xamarin platform so I interviewed Cathy to find out what she likes so much about the platform.
What is Xamarin?
Xamarin Forms is a cross-platform development software that allows developers to build mobile applications using C#, which then compiles into native code. A majority of code can be reused for the various platforms.
What do you enjoying about Xamarin?
I’ve been working with Xamarin to create mobile apps for a while now across a few client projects and am really enjoying building mobile apps with such a sophisticated and professional outcome, since Xamarin offers a lot of controls which are customisable. My work focuses on building the UI for Xamarin apps, which I feel is where most of the learning takes place. Coming from a web developer background, I’ve needed to learn to use Xamarin as well as have a basic understanding of coding for native platforms. There is also the need to think about performance carefully since resources are more limited on a phone.
What specific functions are you learning to use?
There are controls which are offered by Xamarin which compiles to cross-platform controls, such as 'Label' which is equivalent to UILabel (iOS), TextView (Android), and TextBlock (Windows). Those who have worked with Windows Presentation Foundation will find that there are similarities in naming and behaviour.
If you want to customise and extend these controls, then you’ll have to turn to Custom Renderers which allow you to use platform-specific functionality. This is where the syntax is very similar to the syntax of the programming languages used in apps for the various platforms, e.g. Java for Android, and Swift/Objective-C for iOS.
The above shows a simple example of setting a control’s background colour to red. The first line shows how it would be coded natively with the Xamarin Forms equivalent underneath. Custom Renderers aren’t limited to just changing background colours, there is an example on the Xamarin Developer Guide site which shows an app using the phone’s camera.
What is Xamarin best for?
Xamarin is good for being able to efficiently create apps which work across multiple platforms. It is easy to jump in with only C# knowledge, but to fully utilise everything and expand on what Xamarin offers requires extra learning.
Why should people use Xamarin to build mobile apps?
Xamarin has been made open-source and was acquired by Microsoft since February 2016, which has resulted in Visual Studio users being able to use Xamarin for free. With a growing community, Xamarin is constantly evolving and new features are always being added which makes it an exciting time to be part of the Xamarin community!
Contact Webigence to build your mobile app
If you have a mobile app you need building, email email@example.com and we'll happily talk to you about how we can help.
Have a look on our website at one of our client Xamarin Apps we've produced.