開発

2016.06.06

Cross-platform developing via Xamarin.Forms.

Hi again! it’s me Vitaly and today I wanna tell you about cross-platform developing via Xamarin.Forms. 

Today we will try to answer on 2 main questions

  1. Does it works?
  2. Performance???

Let’s start with an Introduction to Xamarin.Forms

Microsoft Xamarin tools will help you write code just once and compile it into native iOS

,Android,Windows,Mac, Apple watch and Android wear apps.

You can use it as an add-on to visual studio or as a standalone app.

Let’s try to build a little app in standalone Xamarin studio.

So we launch Xamarin studio

Снимок экрана 2016-05-28 в 12.15.26

 Create a new app

Снимок экрана 2016-05-28 в 14.24.43

Снимок экрана 2016-05-28 в 22.02.05

Снимок экрана 2016-05-28 в 22.33.20

 Creating a buttonСнимок экрана 2016-05-28 в 22.36.52

 Add button on View

Снимок экрана 2016-05-28 в 22.37.25

Add some function for our button

Снимок экрана 2016-05-28 в 22.39.38

Снимок экрана 2016-05-28 в 22.50.30

That’s it!

Now let’s just build our app.

 

Снимок экрана 2016-05-28 в 22.50.41

Снимок экрана 2016-05-28 в 22.51.28

So let’s answer the first question

  1. Does it works?Снимок экрана 2016-05-28 в 23.23.38

Снимок экрана 2016-05-28 в 22.51.41

Definitely!

Performance

Xamarin building NATIVE apps so Xamarin = Native performance!

Xamarin have access to the full spectrum of native API.

Same-day support for new versions of iOS.

C#

Yes, C# for mobile cross-platform developing!

Xamarin created by the engineers that created Mono so it’s not so surprising that they using C# as main language. Xamarin also support F# out of the box.

Xamarin have build-in store where you can buy or download for free various frameworks

Снимок экрана 2016-05-29 в 0.14.47

Снимок экрана 2016-05-29 в 0.15.27

One famous game engine Unity also using C# via MonoDeveloper as one of main languages.

Conclusion

Xamarin is great!

But also has  some cons. And the main of those cons is UI, yes you can make same UI on all platforms with Xamarin.Forms but it’s still not even close to native iOS apps developed via Xcode.

So if you need to make app with simple UI and deploy it across all mobile platforms and you are not afraid of C# then  Xamarin.Forms can help you with this.

 

Share on FacebookTweet about this on TwitterShare on Google+Share on Tumblr

この記事を書いた人

staff エンジニア:ヴィタリ
一覧に戻る

[ WANTED! ]

共に地方を創る仲間を、随時募集中です