DatePicker 控件允许用户通过在文本框中键入日期和时间,或使用下拉的日历控件来选择日期和时间。
1 2 3 4 5
|
[TemplatePart(Name = ElementRoot, Type = typeof(Grid))] [TemplatePart(Name = ElementTextBox, Type = typeof(WatermarkTextBox))] [TemplatePart(Name = ElementButton, Type = typeof(Button))] [TemplatePart(Name = ElementPopup, Type = typeof(Popup))] public class DateTimePicker : Control, IDataInput
|