This topic will take you through setting the SelectedDate Property in XAML markup and in code.
In XAML
Add the following XAML markup to the <Xaml:C1DateSelector/> tag to set the SelectedDate property:
| Markup |
Copy Code
|
|---|---|
SelectedDate="1932, 01, 10"
|
|
In Code
Use the following code to set the SelectedDate property:
| C# |
Copy Code
|
|---|---|
c1dateselect1.SelectedDate = new DateTime(1932, 01, 10);
|
|
| Visual Basic |
Copy Code
|
|---|---|
c1dateselect1.SelectedDate = New DateTime(1932, 1, 10) |
|