Hi,
I have a query regarding XamDateTimeEditor. Be default when you hover on XamDateTimeEditor than the toogle button appears. I want this toogle button to be there always irrespective of anything.
Also currently calendar appears only when you click on toogle button. is it possible if i click on anywhere on the XamDateTimeEditor, calendar should appear.
Any property available in XamDateTimeEditor which can fullfill above two requirement.
Please guide.
Thanks,
Ashish
Hello Ashish,
Thank you for your post. I have been looking through it and I suggest you set the DropDownDisplayMode property of the XamDateTimeEditor to Always in order to have the toggle button always. As for your other question you can use the following code in the XamDateTimeEditor PreviewMouseLeftButtonDown event:
xamDateTimeEditor1.IsDropDownOpen = !xamDateTimeEditor1.IsDropDownOpen;
e.Handled = true;
and this code:
in PreviewMouseLeftButtonUp event, which will cause the dropdown to open when you click somewhere on the Editor. Please let me know if this meets all your requirements or you need any further clarifications on this matter.
Looking forward for your reply.
Hi Stefan,
I have used IsAlwaysInEditMode="True" to display the toogle button always. Its working fine.
however the code which you provided is opening the calendar on mouse down, and suddenly closing the calendar when you mouse up.
So its not solving the issue.
Hello again,
Excuse me I haven’t been clear enough in my previous post. Now I have attached a sample project showing the functionality you want. Please let me know if this meets all your requirements or you need any further assistance on this matter.