When entering the age we get the datepicker value to change to the year of birth and if we first select the date then we get the current age in the textbox.
- Create a textbox and datepicker as follows:
- Create this converter in the app.xaml.cs file.
- Again below that create the following Converter.
- Then make sure you reference them in the APP.xaml as:
- Run and see them in action.