Entradas

Mostrando entradas de 2015

Xamarin.Forms : Pages

Pages A page occupies the full screen in most cases. A page acts the same as Page on a Windows Phone and UIViewController on iOS. It is important to note that on Android they are more like a Resource.Layout and are certainly not an Activity. In Xamarin.Forms we have differents types of pages, the first: ContengPage: It Contains a single view. This is created by default when you create a new project. using  System ; using  Xamarin . Forms ; namespace  ContentPageOSE {      public   class   App   :   Application      {          public   App   ()          {              //   The   root   page   of   your  application              MainPage   =   new   ContentPage   {                 Content  =   new   StackLayout   {                     VerticalOptions  =   LayoutOptions . Center ,                     Children  =   {                          new   Label   {                             XAlign  =   TextAlignment . Center ,                    

What is Xamarin.Forms?

Imagen
What is Xamarin.Forms?   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 are split into main four areas: Pages: A page occupies the full screen in most cases. A page acts the same as Page on a Windows Phone and UIViewController on iOS. It is important to note that on Android they are more like a Resource.Layout and are certainly not an Activity. Layouts: A layout is a container that can hold other layouts or views. Views: A view is the likes of a Button, ActivityIndicator, or Label. Cells: A cell can be considered as a specialized view that describes how each item within a TableView or ListView is drawn. Requirements To use  Xamarin.Forms , your app must be targeting the following platforms: Xamarin.Forms applications can be written for the following operating systems: Android 4.0.3 (API 15) or higher  # iOS 6.1