473,386 Members | 1,748 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Position of Calendar in DatePicker

Hi, I have trouble setting the position of the DatePicker, a control from WPF Toolket June 2009 release.

When click on the DatePicker control, the Calendar always open as a drop down and expands to the right, but the Calendar goes out of bound as the DatePicker control is aligned to the Right of the screen.

Since I cannot change the location or alignment of the DatePicker, I would like the Calendar opens up as a drop down but expands to the Left of the screen, without changing the flowDirection. Is this possible? If so, please help and explain how. Thanks!
Attached Images
File Type: jpg datePickerCalendar.jpg (7.1 KB, 984 views)
Jan 6 '10 #1
6 6967
tlhintoq
3,525 Expert 2GB
What am I failing to understand?
You were able to take a screen shot of it, so it appears to NOT be off the screen or out of bounds. It doesn't look chopped in any way.
Jan 6 '10 #2
Hi tlhintoq,

The image is an prototype that I'm building on Windows, which will be ported to an embedded device where the calendar will be cropped once it goes out of bound. Sorry for the confusion.
Jan 6 '10 #3
Frinavale
9,735 Expert Mod 8TB
Instead of placing the prompts beside the DateTime pickers consider placing them on top of them.

Or you could consider making the DateTime pickers shorter (since it looks like you're wasting a lot of space with them stretched out across the page).


Are you sure that the DateTime picker pop up doesn't just go to the edge of the screen (are you sure it get's cut off in the device?)

-Frinny
Jan 6 '10 #4
Hi Frinny,

Thanks for your response.

I don't understand your first advice on "placing them on top". Can you please explain it?

I can make the DateTime picker shorter, but it doesn't uniform with other fields that has been blocked. I can do is to shrink the size once it is in focus, but it is an undesired behavior.

I am not sure about the device because we have not get to the stage yet. I did try moving my app to the right side of my screen, and it just go to the end of the screen. Maybe I don't need to do a thing once we load it to the device

Despite my findings above, I would still like to know if I can do one of the following to be certain of the app behavior:

1. Reverse the order of the texbox and the calendar mini-button, which should move the calendar drop down to start from the beginning of the control, or
2. Make the calender to expand to the right, without change the flowdirection.

Thanks again!
Jan 6 '10 #5
Frinavale
9,735 Expert Mod 8TB
You're actually probably more knowledgeable than I am in WPF. I've only been playing with it for a week or so. Do you have something like Expressions Blend to help you figure this stuff out? (Please note that you need more than 1 gig of RAM to run this application or else bad things happen...I know from experience)

What I was recommending is:
Expand|Select|Wrap|Line Numbers
  1. Prompt for DateTimePicker
  2. <date time picker>
  3.  

I'm going to try experimenting with this too to see if I can help you.

-Frinny
Jan 6 '10 #6
tlhintoq
3,525 Expert 2GB
The image is an prototype that I'm building on Windows, which will be ported to an embedded device where the calendar will be cropped once it goes out of bound. Sorry for the confusion.
So you aren't really sure that it is going to be cut off.
I think you will find that the calendar control, like most menus, will automatically reposition itself if it trys to open outside the bounds of the screen.
I suggest you try making your form/window fullscreen as a test, then open the calendar actually off the edge of the screen and CONFIRM that if it actually cuts off or not.
Jan 6 '10 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: tascien | last post by:
I have a user control called DatePicker... DatePicker -> has Calender1 -> has Function GetDate() GetDate() returns Calendar1.SelectedDate Now, my page is calling DatePicker1.GetDate() on...
5
by: Don | last post by:
I think I got this from this group some time ago but I'm not sure. I had a little pop up calendar that was attached to a form. Click on the calendar and select a start date then click on another...
1
by: viswa | last post by:
Hi, Any new calendar control like datepicker in VB relased or freely available for download. I am looking for the calendar control in which the year can easily changable (by typing or choosing it...
2
by: angus | last post by:
Dear All, I would like to make a calendar in asp.net. The notion is as follow. There is a <asp:textbox/>, <asp:button/>, if a user click on the button, a calendar control will appear just...
2
by: Grey | last post by:
I want to create a dropdown calendar instead of popup. the calendar control should be display underneath of the textbox. Does anyone can suggest some samples for me ? Million thanks
3
by: Chris | last post by:
I am trying to use a calendar popup to populate a date in a textbox. I am using the example described in this article: http://aspnet.4guysfromrolla.com/articles/030202-1.aspx However, this...
4
by: ¿ Mahesh Kumar | last post by:
Hi groups, I'm following Master page concept of ASP.NET 2.0, in which I'm deriving all the following page from master page for Theme. So unfortunately i'm dont get any Form Tag in my derived...
3
by: =?Utf-8?B?UGFycm90?= | last post by:
I applied the following Ajax code in my web page which has a calendar control to keep my page from completely reloading everytime something was changed. <atlas:ScriptManager ID="ScriptManager1"...
5
by: MOC835 | last post by:
I have calendar control that I am trying to use on a continuous subform to select two dates. My MainForm collects user data, and the continuous SubForm collects two dates for that specific...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.