I am using the calender with templates to change buttonlayout. I am using an array of elements to define content for
every day and bind it to the button via date.DayOfYear in a switch statement.
I have some few issues:
1) It also bind to the calendars Day names lime Mon, Tue, Wed even if selecting only where DayOfYes is between 1 and 365
Is it possible to see an attribute there shows it is not a "weekday" button ?
2) I use a grid, a picture and a border in my template. It can have lots of different scenarios and i cant create 200 different templates. Instead i want to manipulate border thickness and imagename
I have tried with the following code in my TemplateSelector class
Border
b1 = item as Border;
b1.BorderThickness =
new Thickness(8);
and the following XAML
<Border BorderThickness="{Binding Text}" BorderBrush="{Binding Text}">
Best regards
Thomas