Xamarin Forms Controls - PowerPoint PPT Presentation

About This Presentation
Title:

Xamarin Forms Controls

Description:

Xamarin provides a fast, familiar maps experience for users, but means that some configuration steps are needed to adhere to each platforms API requirements. Once configured, the Map control works just like any other Xamarin.Forms element in common code. – PowerPoint PPT presentation

Number of Views:319
Slides: 18
Provided by: ifourtechnolab
Category: Other

less

Transcript and Presenter's Notes

Title: Xamarin Forms Controls


1
iFour Consultancy
https//www.ifourtechnolab.com/xamarin-mobile-app-
development
2
List of controls
  • Map View
  • Web View
  • Image Button
  • Label
  • Entry
  • Editor
  • Button
  • Image
  • Picker
  • Date Picker
  • Time Picker
  • Stepper
  • Slider
  • Box View
  • List View

https//www.ifourtechnolab.com/xamarin-mobile-app-
development
3
Label
  • The label view is used for displaying text, both
    single and multi-line. Labels can have text
    decorations, colored text, and use custom fonts
    (families, sizes, and options).

Example
ltLabel TextThis is Label TextDecorationsUnder
line, Strikethroughgtlt/Labelgt
https//www.ifourtechnolab.com/xamarin-mobile-app-
development
4
Entry
  • The Xamarin.Forms Entry is used for single-line
    input. The Entry, like the Editor view, supports
    multiple keyboard types. Additionally, the Entry
    can be used as a password field.

Example
ltEntry Text"I am an Entry KeyboardEmail /gt
https//www.ifourtechnolab.com/xamarin-mobile-app-
development
5
Editor
  • The Xamarin.Forms Editor control is used to
    accept multi-line input.

Example
ltEditor Text"I am an Entry /gt
https//www.ifourtechnolab.com/xamarin-mobile-app-
development
6
Button
  • The Button is the most fundamental interactive
    control in all Xamarin.Forms. The Button usually
    displays a short text string indicating a
    command, but it can also display a bitmap image,
    or combination of text and an image.

Example
ltButton Text"Click to Rotate Text!"
VerticalOptions"CenterAndExpand"
HorizontalOptions"Center" Clicked"OnButtonClicke
d" /gt
https//www.ifourtechnolab.com/xamarin-mobile-app-
development
7
Image
  • Xamarin.Forms uses the Image view to display
    images on page. It has two important properties
  • Source and Aspect.

Example
ltImage Sourcename AspectAspectFill /gt
https//www.ifourtechnolab.com/xamarin-mobile-app-
development
8
Picker
  • The Picker view is a control for selecting a text
    item from a list of data.

Example
ltPicker ItemSourceBinding
ItemSelectedMethodName /gt
https//www.ifourtechnolab.com/xamarin-mobile-app-
development
9
Date picker
  • A Xamarin.Forms view that allows the user to
    select a date.

Example
ltDatePicker Datexstatic sysDateTime.Now /gt
https//www.ifourtechnolab.com/xamarin-mobile-app-
development
10
Time picker
  • A Xamarin.Forms view that allows the user to
    select a time.

Example
ltTimePicker Time"41526 /gt
https//www.ifourtechnolab.com/xamarin-mobile-app-
development
11
Stepper
  • The Xamarin.Forms Stepper consists of two labeled
    with minus and plus signs. These buttons can be
    manipulated by the user to incrementally select a
    double value from range of values.

Example
ltStepper Maximum"360" Increment"30"
HorizontalOptions"Center" ValueChanged"OnStepper
ValueChanged" /gt
https//www.ifourtechnolab.com/xamarin-mobile-app-
development
12
Slider
  • The Xamarin.Forms slider is horizontal bar that
    can be manipulated by the user to select a double
    value from a continuous range.

Example
ltSlider Maximum"360" ValueChanged"OnSliderValueC
hanged" /gt
https//www.ifourtechnolab.com/xamarin-mobile-app-
development
13
BoxView
  • BoxView renders a simple rectangle of a specified
    width, height and color. You can use BoxView for
    decoration, rudimentary graphics, and interaction
    with the user through touch.

Example
ltBoxView Color"CornflowerBlue" CornerRadius"10"
WidthRequest"160" HeightRequest"160"
VerticalOptions"Center" HorizontalOptions"Center
" /gt
https//www.ifourtechnolab.com/xamarin-mobile-app-
development
14
ListView
  • Listview is a view presenting list of data,
    especially long list that require scrolling.

Example
ltListViewgt ltListView.ItemsSourcegt ltxArray
Type"xType xString"gt ltxStringgtmonolt/xString
gt ltxStringgtmonodroidlt/xStringgt
ltxStringgtmonotouchlt/xStringgt ltxStringgtmonoraillt
/xStringgt ltxStringgtmonodeveloplt/xStringgt
ltxStringgtmonotonelt/xStringgt ltxStringgtmonopolylt/
xStringgt ltxStringgtmonomodallt/xStringgt
ltxStringgtmononucleosislt/xStringgt lt/xArraygt
lt/ListView.ItemsSourcegt lt/ListViewgt
https//www.ifourtechnolab.com/xamarin-mobile-app-
development
15
WebView
  • WebView is a view for displaying web and HTML
    content in your app. Unlike OpenUri, which takes
    the user to the web browser on the device,
    WebView displays the HTML content inside your app.

Example
ltWebView xName"webView" WidthRequest"1000"
HeightRequest"1000" Sourcehttps//docs.microso
ft.com/en-us/xamarin/xamarin-forms/user-interface/
webview?tabswindows /gt
https//www.ifourtechnolab.com/xamarin-mobile-app-
development
16
ImageButton
  • The ImageButton displays an image and responds to
    a tap or click that directs an application to
    carry out particular task.

Example
ltImageButton Source"XamarinLogo.png"
HorizontalOptions"Center" VerticalOptions"Center
AndExpand" /gt
https//www.ifourtechnolab.com/xamarin-mobile-app-
development
17
Maps
  • Xamarin.Forms.Maps uses the native map APIs on
    each platform. This provides a fast, familiar
    maps experience for users, but means that some
    configuration steps are needed to adhere to each
    platforms API requirements. Once configured, the
    Map control works just like any other
    Xamarin.Forms element in common code.

https//www.ifourtechnolab.com/xamarin-mobile-app-
development
Write a Comment
User Comments (0)
About PowerShow.com