--- title: "DatePicker" ms.date: "03/30/2017" helpviewer_keywords: - "controls [WPF], DatePicker" - "DatePicker control [WPF]" ms.assetid: 619765c8-8d25-4315-aec2-79aea08fed9f --- # DatePicker The control allows the user to select a date by either typing it into a text field or by using a drop-down control. The following illustration shows a . ![DatePicker control](./media/ndp-datepicker.png "NDP_DatePicker") DatePicker Control Many of a control's properties are for managing its built-in , and function identically to the equivalent property in . In particular, the , , , , , , and properties function identically to their counterparts. For more information, see . Users can type a date directly into a text field, which sets the property. If the cannot convert the entered string to a valid date, the event will be raised. By default, this causes an exception, but an event handler for can set the property to `false` and prevent an exception from being raised. ## See also - [Controls](index.md) - [Styling and Templating](/dotnet/desktop-wpf/fundamentals/styles-templates-overview)