Interchangeable Converter from Age to DOB and Vice Versa

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.

  1. Create a textbox and datepicker as follows:

    datepicker

  2. Create this converter in the app.xaml.cs file.

    Converter

  3. Again below that create the following Converter.

    APP

  4. Then make sure you reference them in the APP.xaml as:

    action

  5. Run and see them in action.

    Run
Ebook Download
View all
Learn
View all