As a personal project, I am putting the C # WPF calendar together.
I'm stuck on coding the calendar screen - in particular, 5x7 grid days.
I have tried to code it using elements such as panel, label, and button first. I have decided that it was very cumbersome.
I then decided to use GDI to draw the calendar myself. I now have a wonderful layout - but I'm not sure how to manage the interactive areas of the calendar. (Click on any particular day, say last / next month ...)
After render the calendar screen, would I want to create button objects for all those tasks, and onClick handlers Should specify?
Or is there any alternative solution?
Thanks in advance.
- Viladislav
You do not have to control your hand-made panel needed; This is a recipe for trouble.
Instead, you should store the range of buttons in the form of rectangle
s, and they must be tracked in the mouse event.
However, using a grid and some buttons, it would be better to implement everything in WPF.
Comments
Post a Comment