3.5 KiB
title | page_title | description | position | slug |
---|---|---|---|---|
Getting Started | Getting Started with Xamarin.Forms NumericInput Control | Check our "Getting Started" documentation article for Telerik NumericInput for Xamarin control. | 1 | numericinput-getting-started |
Getting Started
This article will guide you through the steps needed to add a basic RadNumericInput control in your application.
1. Setting up the app
Take a look at these articles and follow the instructions to setup your app:
- [Setup app with Telerik UI for Xamarin on Windows]({%slug getting-started-windows%})
- [Setup app with Telerik UI for Xamarin on Mac]({%slug getting-started-mac%})
2. Adding the required Telerik references
You have two options:
- Add the Telerik UI for Xamarin Nuget package following the instructions in [Telerik NuGet package server]({%slug telerik-nuget-server%}) topic.
If you don't want to add the all Telerik.UI.for.Xamarin nuget package, you have the option to add a separate nuget package. For RadNumericInput control you have to install the Telerik.UI.for.Xamarin.Input nuget package. This nuget will automatically refer the Telerik.UI.for.Xamarin.Primitives, Telerik.UI.for.Xamarin.Common, and Telerik.UI.for.Xamarin.DataControls nuget packages.
- Add the references to Telerik assemblies manually, check the list below with the required assemblies for RadNumericInput component:
Platform | Assemblies |
---|---|
Portable | Telerik.XamarinForms.Common.dll Telerik.XamarinForms.Input.dll |
Android | Telerik.Xamarin.Android.Common.dll Telerik.Xamarin.Android.Data.dll Telerik.Xamarin.Android.Input.dll Telerik.Xamarin.Android.List.dll Telerik.Xamarin.Android.Primitives.dll Telerik.XamarinForms.Common.dll Telerik.XamarinForms.Input.dll |
iOS | Telerik.Xamarin.iOS.dll Telerik.XamarinForms.Common.dll Telerik.XamarinForms.Input.dll |
UWP | Telerik.Core.dll Telerik.Data.dll Telerik.UI.Xaml.Controls.Data.UWP.dll Telerik.UI.Xaml.Input.UWP.dll Telerik.UI.Xaml.Primitives.UWP.dll Telerik.XamarinForms.Common.dll Telerik.XamarinForms.Input.dll |
3. Adding RadNumericInput control
You could use one of the following approaches:
Drag the control from the Toolbox.
Take a look at the following topics on how to use the toolbox:
- [Telerik UI for Xamarin Toolbox on Windows]({%slug telerik-xamarin-toolbox%})
Create the control definition in XAML or C#.
The snippet below shows a simple RadAutoCompleteView definition:
In addition to this you need to add the following namespace:
Here is the result:
important The SDK Browser and QSF applications contain different examples that show RadNumericInput's main features. You can find the applications in the Examples and QSF folders of your local Telerik UI for Xamarin installation.
See Also
- [Key Features]({%slug numericinput-key-features%})
- [Globalization]({%slug numericinput-globalization%})
- [Commands]({%slug numericinput-commands%})