Quote:As I found out by trial is that the cell is created twice: Below the cell with StyleKey=WithHeader and on top another cell with StyleKey=Today -- but there the HeaderText always returns "1", not the correct day.
That's exactly the case - the cell representing the current day is superimposed over the ordinary cell of the day. The wrong HeaderText is a bug. We will fix it.
Quote:I also have problems in understanding how MonthSettings.DaySettings.HeaderPosition != Top gets applied -- is this a pure Margin thing?
(BTW: The holiday sample really looks strange with HeaderPosition != top)
The HeaderPosition property is translated into four properties within the cell presenter which define the size and alignment of the header element - HeaderWidth, HeaderHeight, HeaderHorizontalAlignment and HeaderVerticalAlignment. You can see those being bound to in the default cell template. The Holiday sample deliberately disregards these properties so that the custom cell template presented there is kept simpler.
Quote:Another thing: The display position of items: Is this a hardcoded behavior? I think it would be more elegant if one could place some sort of ItemPresenter or a special named container whereever you want inside the ControlTemplate.
The area where the items are laid out is calculated automatically and is view dependent. For example, in views with headered cells, this area is the union of all cells in each row excluding the cell headers. The item layout behavior cannot be manipulated directly at this time because it is rather complex and we haven't figured an acceptable mechanism to expose it to the client.
I hope this helps.
Regards,
Meppy