How can I set the datetimepicker dropdown to show Months only

前端 未结 5 971
夕颜
夕颜 2020-12-17 16:45

So instead of this showing up on clicking the dropdown menu.

I want the dropdown to be like this when clicked.

Thanks a lot for any help.

5条回答
  •  春和景丽
    2020-12-17 17:15

    Why you need to do this? If you want to display Months only then easier way is to have a list of months in Combox.

    However I found something for you on msdn. Have a look here https://social.msdn.microsoft.com/Forums/en-US/7bdca56f-719e-44bf-be6d-a9600dfa8f78/wpf-datepicker-for-months-only?forum=wpf

提交回复
热议问题