#1,035 – DatePicker Basics

The DatePicker is a control that operates like the Calendar control, allowing the user to select a date, but does so in a dropdown calendar that appears when the user clicks on a calendar icon in the control.  Unlike the Calendar control, the DatePicker allows selecting only a single date.

        <Label Content="Calendar:"/>
        <Calendar />

        <Label Content="DatePicker:" Margin="0,10,0,0"/>
        <DatePicker Margin="5,0"/>

The DatePicker looks a bit like a TextBox, with an area to enter some text and a calendar icon to the right.


If you click on the calendar icon in the DatePicker, a calendar appears as a popup, allowing selection of a date.


Once you select a date, the date is then displayed in the text area.


You can also type a date manually into the text area of the DatePicker.



About Sean
Software developer in the Twin Cities area, passionate about software development and sailing.

One Response to #1,035 – DatePicker Basics

  1. Pingback: Dew Drop – March 24, 2014 (#1749) | Morning Dew

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: