Looking for help with a design for a simple C# calendar app.

Posted by Vladislav on Stack Overflow See other posts from Stack Overflow or by Vladislav
Published on 2010-05-17T01:35:32Z Indexed on 2010/05/17 1:40 UTC
Read the original article Hit count: 313

Filed under:
|
|
|

As a personal project, I'm putting together a C# WPF calendar.

I'm stuck on coding the calendar screen - specifically, the 5x7 grid of days.

I've first tried to code it using elements like Panels, Labels, and Buttons. I've decided that was too cumbersome.

I've then decided to use GDI to draw the calendar myself. I now have a wonderful layout - but I'm not sure how to handle interactive regions of the calendar. (Say, Previous/Next month, clicking on any particular day...)

After rendering the calendar screen, should I be creating button objects for all those tasks, and assigning onClick handlers to them?

Or is there an alternative solution?

Thanks in advance.

-Vladislav

© Stack Overflow or respective owner

Related posts about c#

Related posts about gdi+