What is new in xamarin forms 4.0.0?

Xamarin, xamarin forms, xamarin forms controls, xamarin forms development, what is xamarin forms, xamarin forms shell, xamarin forms webview, xamarin forms navigation, xamarin cross platform, xamarin controls, benefits of xamarin, xamarin webview, xamarin android, xamarin ios, xamarin c#, xamarin app, xamarin app development company, xamarin developer, xamarin development company, xamarin application, xamarin forms releases, xamarin forms current version, xamarin forms latest version

What is new in xamarin forms 4.0.0?

What is Xamarin Forms?  

With Xamarin, you can build cross-platform apps based on .NET and C#. No more Java and Objective-C or Swift. Everything you can do with these platforms can be done with Xamarin in C#.

Xamarin Forms is a mobile application framework for building user interfaces. Xamarin Forms is a cross-platform UI toolkit that allows developers to easily create native user interface layouts that can be shared across Android, iOS, and Windows Phone.

Xamarin Forms Is More than Controls

Xamarin Forms provides 20+ cross-platform user interface controls; each of these controls has an API specific to Xamarin Forms, but is emitted as its native iOS, Android or UWP counterpart. In other words, a Xamarin Forms Label control will be emitted as an iOS UILabel.

  • A messaging serviced called Messaging Center is included – allowing various classes and components to communicate without knowing anything about each other.
  • Effects are a means by which you can create small platform-specific user interface tweaks to controls and have them applied in the shared project.
  • Custom Renderers allow you to take full control of how a control renders itself within Xamarin Forms – thus you are able to add whatever additional appearance or functionality that you may need.
  • And with the latest version of Xamarin Forms, you can even directly add in controls that are only supported on one platform, such as Android floating action buttons, directly into XAML files!

What is new in xamarin forms 4.0.0?

Every release of xamarin forms improves the performance and adds new features. This new version includes several improvements and bug fixes, and also some interesting new features that we’ll discuss in this blog post.

Let’s have a look at the new features in Xamarin Forms 4.0.0  

Shell: 

Shell is a new way to create our apps. First of all, it allows us to add easily flyouts and menus to our apps. It also adds the concept of URI navigation. That’s great but what is even better is that it uses “fast renderers”. To use the shell, on Visual Studio 2019 starting a new Xamarin Forms app, you can select the Shell template.

For more details

An example of the implementation of shell:

<Shell xmlns=”http://xamarin.com/schemas/2014/forms”

xmlns:x=”http://schemas.microsoft.com/winfx/2009/xaml”

xmlns:local=”clr-namespace:TailwindTraders”

x:Class=” TailwindTraders.Shell”

Title=”TailwindTraders”>

<ShellItem Title=”Home”>

<ShellSection>

<ShellContent>

<local:HomePage />

</ShellContent>

</ShellSection>

<ShellItem>

</Shell>

Image Source Unification: 

From Xamarin Forms 3.5, they have introduced the FontImageSource to use the font glyphs but was not possible to use it everywhere. From version 4.0using ImageSource you can use them wherever you want.

For more details

Android Fast Renderers:

Android Fast Renderers were introduced in Xamarin Forms 2.4 but disabled by default. The idea behind them is to reduce the number of views required to render a particular control. Honestly, you could see improved performances so now they are enabled by default. This means that you will notice better performances with the new Xamarin Forms.

For more details

Forms.SetFlags(“UseLegacyRenderers”);

Accessibility: 

From Xamarin Forms 4.0 we can now control the focus order directly in X.F. To do this, we can use the TabIndex property available on any Visual Element.

For more details

Example

<Label AutomationProperties.IsInAccessibleTree=”false”

Text=”Turn on your screen reader and swipe between elements. The elements should be read in ascending order. It should *not* read Skip. It should *not* read this text.” />

<Label TabIndex=”0″ Text=”This will be read first and have focus”/>

<Button TabIndex=”1″ Text=”Next Focus”/>

Collection View: 

This is an awesome control that can be used with different types of views, like horizontal list view, listing with 2 span and others. Collection View is an example of listview for listing items. It improves inventory design and reduces complexity. Collection View control is very flexible.

For more details

An example of the implementation of new view:

<CollectionView ItemsSource=”{Binding Blogs}”>

<CollectionView.ItemTemplate>

<DataTemplate>

<Grid Padding=”10″>

<Grid.RowDefinitions>

<RowDefinition Height=”Auto” />

<RowDefinition Height=”Auto” />

</Grid.RowDefinitions>

<Grid.ColumnDefinitions>

<ColumnDefinition Width=”Auto” />

<ColumnDefinition Width=”Auto” />

</Grid.ColumnDefinitions>

<Image Grid.RowSpan=”2″

Source=”{Binding ImageUrl}”

Aspect=”AspectFill”

HeightRequest=”60″

WidthRequest=”60″ />

<Label Grid.Column=”1″

Text=”{Binding Name}”

FontAttributes=”Bold” />

<Label Grid.Row=”1″

Grid.Column=”1″

Text=”{Binding Location}”

FontAttributes=”Italic”

VerticalOptions=”End” />

</Grid>

</DataTemplate>

</CollectionView.ItemTemplate>

</CollectionView>

           

Visual: 

Visual is a new way to achieve consistent UI design across iOS and Android, beginning with an implementation of Google’s Material Design. This first iteration includes Button, Entry, Frame, and Progress Bar. Visual goes beyond styles to also unify behavior and when necessary providing highly customizes renderers.

For more details

Example

<ContentPage …

Visual=”Material”>

</ContentPage>

Benefits of xamarin forms

Rapid Prototyping of Mobile Apps

While creating complex mobile apps, developers often have to spend a lot of time and effort on prototyping. Along with being written in C#, Xamarin Forms applications are native. So these applications can take advantages other APIs and features of the underlying mobile platform.

Option to Decide User Interface Development Technique

Xamarin Forms further allows developers to create user interfaces in two distinct ways. The programmers can avail the API provided by the framework to create user interface views completely with source code. At the same time, they can also create user interfaces using Extensible Application Markup Language (XAML). As a declarative markup language, XAML can be used effectively to define the user interface.

Several Pages

While creating Xamarin Forms applications, the developers have option to use several pages. The pages can be defined as the application’s screens. Based on the mobile platform, a page can be a View Controller in iOS, an activity in Android, or a Page in Windows Phone. The developers can customize the user interface’s look and feel by using several types of pages including content page, navigation page, tabbed page, carousel page, or master-detail page. The pages make it easier for developers to customize the app’s look and feel without writing longer lines of code.

Variety of Layouts

Like pages, Xamarin Forms allows developers to use a variety of layouts. They can further use the layout as a container for both views and other containers. Based on the requirements of the application, the programmers can use stack, absolute, relative, or grid layout. The stack layout allows users to position elements in a single line, whereas the grid layout displays the elements in rows and columns. Likewise, absolute layout displays the elements at absolute positions, whereas relative layout displays elements based on constraints.

 

We have successfully developed this application in Xamarin Cross Platform

Allow me:

Allow me basically a feedback system for Restaurants, by using this application they can evaluate their services weak points and improve them in efficient manner.

EGRC:

E-GRC is a one-stop inspection application that performs the Entire Inspection process Without Piece of paper. The software also has automatic email reminders for scheduled and not done. EGRC App is very important and helpful for Tracking Inspection, scheduling, and Auditing System.

Edubiz: EVA World School Dombivali

This application is directly connect students to their school to receive important notice, results and syllabus.

Leave a Reply

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