Title: Xamarin Forms Controls
1iFour Consultancy
https//www.ifourtechnolab.com/xamarin-mobile-app-
development
2List 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
3Label
- 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
4Entry
- 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
5Editor
- 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
6Button
- 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
7Image
- 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
8Picker
- 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
9Date 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
10Time 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
11Stepper
- 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
12Slider
- 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
13BoxView
- 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
14ListView
- 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
15WebView
- 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
16ImageButton
- 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
17Maps
- 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