Is it possible to declare a (linked) multimonth calendar Index View Control in pure Xaml? Disregarding the public interface of the resulting control.
What i intend to get would look like this (well, kind of):
<January> <February> <..>
1234556 12345678
78910 .. 91011…
Above you see two Calendars. If one of those calendars is switched forward or backward one month, the “neighbours” also have to switch state in that direction. Additionally the number of Visible Calendars should be determined by the current width and height of the control.
First, i was thinking of a WrapPanel. But what i try to find out is how to specifiy the itemssource (list of DateTime’s) and the “link” between the calendars.
Any suggestions on how to solve this in best WPF manner?
You can link the calendars by binding the DisplayDate value to its adjacent Calendar control, and using a Value Converter to adjust the month. I’ve include a basic prototype to get you started.
Here is the XAML:
Here is the converter: