Creating a Dynamic calendar in Silverlight

Posted by Tom on Stack Overflow See other posts from Stack Overflow or by Tom
Published on 2009-05-26T22:17:10Z Indexed on 2011/01/05 7:53 UTC
Read the original article Hit count: 161

Filed under:
|
|

I am attempting to create a long range calendar that dynamically loads (and unloads) event data as the user scrolls left or right through time. I'm really struggling to figure out how to lay the basic framework of the UI out and how to dynamically build the interface as the user scrolls by clicking and dragging the mouse in the view area. See the image below for a basic diagram of the intent. Each slice would have potentially multiple rectangles in it for events that occurred on that day (slice). I would like each slice to be a canvas to allow me to position those rectangles appropriately. alt text

There are a few problems that I am not yet sure how to tackle but this is the first big one that I've been mulling over for a while and can't quite wrap my head around:

  1. I know how to dynamically create controls but how would I go about adding things to one end of the scrollable content while removing things from the other depending on the way the user is scrolling?

Any guidance in the right direction would be much appreciated! Thanks.

© Stack Overflow or respective owner

Related posts about c#

Related posts about vb.net