RangePicker DatePicker

Here's a quick overview of the idea I got from Google Analytics.

ComboBox Crash:

ComboBox Collapsed http://www.googlemapscontrol.net/images/CalendarDropDownClosed.jpg

ComboBox Expanded:

ComboBox Expanded http://www.googlemapscontrol.net/images/CalendarDropDownOpen.jpg

I'm not interested in the functionality of the text fields in the timeline or date range. Basically I am looking to have something similar to a ComboBox with one calendar control. When a date range is selected and the control is closed, the range is displayed in the text box.

I don’t think that I can make ComboBox behave this way, and I think that I need to use something along the lines of a text block, button and popup.

Does anyone have a sample I can start with?

If you do not have a sample, how do you approach this problem?

thanks

+3
source share
1 answer

The WPF Toolkit has a Calendar / DatePicker control that may be the right base for you so that you can modify complex date range choices.

I would start with the DatePicker Generic.xaml file from the WPF Toolkit distribution and analyze what they did with the DatePicker management template. An interesting section for you will be around the area in which PART_TextBoxand are used PART_Button. They really use a combination of grids, text fields, buttons and pop-ups.

Hope this helps!

0
source

Source: https://habr.com/ru/post/1703633/


All Articles