Xamarin. Forms Exploration -- use Xamarin. Forms to create a cross-platform user interface, xamarin. forms --

Source: Internet
Author: User

Xamarin. Forms Exploration -- use Xamarin. Forms to create a cross-platform user interface, xamarin. forms --

Xamarin. Forms is a cross-platform, native control-based UI toolkit. developers can easily create user interfaces for Android, iOS, and Windows Phone. Different from HTML 5, Xamarin. Forms uses the native control of the platform to render the user interface. The App using Xamarin. Forms looks exactly the same as the platform. The biggest feature of Xamarin. Forms is: one write, use everywhere, and Native display, which is also the most attractive to me. It is a simple example:

 

Next we will have a series of articles to introduce how to use Xamarin. Form for cross-platform application development, as shown below:

1. Get started with Xamarin. Forms

This section describes what Xamarin. Forms is and some core concepts in Xamarin. Forms, including views, la S, data binding, and interface navigation.

2. Introduction to common Xamarin. Forms controls

This section describes some main controls contained in the Xamarin. Forms framework, such as paging controls, views, cells, and other layout controls.

3. Use Xamarin. Forms to manipulate images, fonts, and files

This section describes how to use images, set fonts, colors, and manipulate files in Xamarin. Forms.

4. develop custom controls to change the style

This section describes how developers can use custom controls to change the Display Effect of controls and write specific presentations for each platform.

5. How to perform operations on the native platform through DependencyService

Xamarin. Forms DependencyService provides a simple method for developers to encapsulate native operations on each platform. Upper-layer callers can use these native operations without any difference.

6. How to publish and subscribe to messages

Xamarin. Forms MessagingCenter enables interaction between view models or between view models and other components through messages. These components do not need to understand the details of each other, but only need to follow a simple message protocol.

7. How to localize apps

Similar to the. NET program, Xamarin. Forms also supports multi-language localization through RESX files.

8. How to perform automated testing

Xamarin provides the Xamarin. Forms UI testing framework. The Xamarin testing cloud platform allows you to perform UI testing on hundreds of devices.

9. How to Use XAML to define the Xamarin. Forms Interface

Xamarin. forms allows developers to define and build user interfaces through XAML. forms is not necessary, but it is more concise and visualized to build the UI interface through XAML, and is more suitable for the application architecture of MVVM, in addition, data can be bound to the view model in XAML.

 

Original article: Xamarin. Forms -- Cross-Platform User Interfaces with Xamarin. Forms

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.