Add References
In order to use Telerik RadDatePicker and RadTimePicker controls in your application you have to add reference to the Telerik UI for Windows Universal SDK:
If you choose to add binaries instead, you will need the following references:
To add them:
Caution |
---|
To use RadDatePicker or RadTimePicker in XAML you have to add the following namespace declaration in the main page:
xmlns:telerik="using:Telerik.UI.Xaml.Controls.Input" |
Declare Instances
The following example shows how to declare a new RadDatePicker or RadTimePicker instance :
RadDatePicker
XAML | Copy |
---|
<telerik:RadDatePicker/> |
C# | Copy |
---|
RadDatePicker myDatepicker = new RadDatePicker(); |
RadTimePicker
XAML | Copy |
---|
<telerik:RadTimePicker/> |
C# | Copy |
---|
RadTimePicker myTimePicker = new RadTimePicker(); |