Wpf custom datepicker user control

后端 未结 4 1979
执念已碎
执念已碎 2021-01-27 17:03

I want to create a user control for getting a date from the user. It should have three textboxes, one for year, month and day. I don\'t know how to create it.

         


        
4条回答
  •  终归单人心
    2021-01-27 17:23

    You don't have your text boxes wired up to your dependency property. The value is never set. You need some type of converter that will convert the values in your text boxes to an actual date too. I think you are better off going with the DatePicker Control in the toolkit (3.5) or the framework (4.0).

提交回复
热议问题