If you need to bind a DateTime property you have in your ViewModel with a DatePicker in your XAML, all you must to do is implement a converter. Below you can see the Converter class: ... public class DateTimeToPickerConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, string language) { var date = (DateTime)value; return new DateTimeOffset(date); } public object ConvertBack(object value, Type targetType, object parameter, string language) { throw new NotImplementedException(); ...
Tecnología, Desarrollo de Software, Seguridad Informática, Impresoras 3D, Maker, IA & Machine Learning, UWP, Ingeniería inversa, Ingeniería Social, Electrónica, Robótica, Diseño Gráfico, La Política como Negocio, Marketing, Ingeniería Mecánica, La Vida, La Muerte como parte de la Vida y un sin fín de cosas más que me pasan por la cabeza.