Ruurd Boeke

Okay, so I'll be the first to whine about this: it's been said in some video's and a few blog posts that there will not be a datetimepicker for avalon provided by microsoft. Is that true

If so, is someone working on this / planning on going to work on it
I'm probably going to need this pretty soon, and I think it's a bit too involved to just do myself.

Regards




Re: Windows Presentation Foundation (WPF) date picker not available, someone already working on it?

Pung Xu - MSFT

Ruurd,

Thank you for raising this question. DatePicker will not be in v1 but will be very likely in later release. We are looking into providing DatePicker sample for use in interim.

Regards,

Pung Xu





Re: Windows Presentation Foundation (WPF) date picker not available, someone already working on it?

Ruurd Boeke

Ok, thanks for this information. I hope that shows up soon, because it will be necessary




Re: Windows Presentation Foundation (WPF) date picker not available, someone already working on it?

Ji Zhang

Hello, Ruurd

If you can descript your scenario in detail, it will help us a lot in developing a sample.

Ji





Re: Windows Presentation Foundation (WPF) date picker not available, someone already working on it?

_Michael_

Hello Ji,

DatePicker is also very important to me. I've raised the issue before here http://msdn.microsoft.com/newsgroups/default.aspx pg=8&lang=en&cr=US&guid=&sloc=en-us&dg=microsoft.public.windows.developer.winfx.avalon&fltr= on 23 Feb and on ATC_Avalon_Team at http://blogs.msdn.com/atc_avalon_team/archive/2006/03/24/559564.aspx#comments.

Sorry if this sounds like a bit of a rant but DateTime is a basic .Net type and for WPF to not have any support seems to be saying 'its not ready yet; wait for V2'.

I think a great approach to building a DatePicker would be to make it a specialisation of a masked edit control. The key features needed are:-

Fields: Users involved in entering a lot of data prefer to use the keyboard rather than a mouse. The Win32 datepicker's use of arrow keys to move between day, month, year fields is good. Likewise the up/down arrows to scroll trough values is good.

Nulls: The Win32 control's use of a check box to indicate Null was poor and seems to confuse many users. A more natural approach is just an empty control. Tabbing into the control selects the first (day) field. If the control is empty (null), spacebar enters todays date. Use any of '. / - +' or left/right arrows to move to next field. Delete clears control and indicates null; don't display the previous value in a disabled state.

Date Formats: Need to be able to display usual date formats, months in long or short form and allow for localisation.

Hope you're able to come up with something. The ListView control is superb!

Michael





Re: Windows Presentation Foundation (WPF) date picker not available, someone already working on it?

Ruurd Boeke

Thanks Ji for responding. In the past we have developed our own specializations for the normal .net 1.1 datepicker because it was not customizable enough.

Basically, when we have an edit screen and a property is a date, we want to display a textbox where one can enter the date directly and a icon next to it which will open a graphical datepicker.

As for the textual input: I would appreciate the ability to parse myself, so I can allow custom dateformats.
Next to that, the datepicker really needs to be able to allow for nulls. We used the 'special value' strategy in the past and will still have to use that because of our database schema, but in general, we obviously love the nullable date ;-)
Reading back the previous posters comments, I totally agree with him..

The icon could show a normal graphical datepicker, where indeed the use of a checkbox to correspond to 'null' is not very intuitive. Apart from being localizable, there is not much to say here.

I hope this helps. If you have any questions, please let me know. Good luck with it!






Re: Windows Presentation Foundation (WPF) date picker not available, someone already working on it?

Pung Xu - MSFT

Thank you Michael and Ruurd for sharing your scenarios!

We will definitely consider notion of nullable date in DatePicker. We will consider your other usages when designing the sample although I can't promise because we are designing a more generic sample. We will try our best to come up with something that enables some of your scenarios meaning the sample will make them possible but not by default and you will have to do some work on your part to make it happen like custom dateformats.

As regarding to localization, we will only consider Gregorian Calendar in DatePicker. The localizable text parts will be title (month/year) and day of week like (Mon, Tue, etc).

-Pung Xu





Re: Windows Presentation Foundation (WPF) date picker not available, someone already working on it?

Ruurd Boeke

is there any word on this yet

I'm approaching the point of no return and have to start working on this myself or wait for your control.
Can you give an estimate on when it will be finished






Re: Windows Presentation Foundation (WPF) date picker not available, someone already working on it?

Pung Xu - MSFT

We will be working on the sample soon. It will be just sample not a product. ETA is end of June.

Pung





Re: Windows Presentation Foundation (WPF) date picker not available, someone already working on it?

_Michael_

I see today that the ATC Avalon Team has closed its blog. Are you still planning to make a DatePicker sample available and if so when and where will it be available

Thanks

Michael





Re: Windows Presentation Foundation (WPF) date picker not available, someone already working on it?

Pung Xu - MSFT

The DatePicker sample work has been handed over to Kevin Moore. Please contact him directly at Kevin.moore@microsoft.com

Thanks,

Pung





Re: Windows Presentation Foundation (WPF) date picker not available, someone already working on it?

Houman b

Hello,

Is the date picker/calendar control available now

Thanks

Houman





Re: Windows Presentation Foundation (WPF) date picker not available, someone already working on it?

Paul Czywczynski

Kevin made it available a few months ago. The latest build is here:

http://blogs.msdn.com/okoboji/archive/2006/09/20/764019.aspx





Re: Windows Presentation Foundation (WPF) date picker not available, someone already working on it?

Houman b

Thank you Paul, and Thank you Kevin!!!!



Re: Windows Presentation Foundation (WPF) date picker not available, someone already working on it?

Marlon Grech

have a look here

http://marlongrech.wordpress.com/2007/09/11/wpf-datepicker/

regards