or
Hi,
I would like to run a storyboard which will effect the border when a user enters a cell. I presume this can be achieved through a trigger.
Alternately / also I would like show a different control template, when the enters the cell and leaves the cell
My problem is that I do not which property to attach the trigger to.
for my column style I am using this ControlTemplate.
<ControlTemplate x:Key="DataBoundColumnCustom" TargetType="{x:Type telerik:GridViewCell}">
<ControlTemplate.Triggers>
<Trigger>
</Trigger>
</ControlTemplate.Triggers>
<Border CornerRadius="2,2,2,2" Background="Cornsilk" Opacity="50" >
</Border>
</ControlTemplate>
pat.Frequency = RecurrenceFrequency.Weekly;
pat.MaxOccurrences = week.NumberOfOccurrences;
Microsoft.Exchange.WebServices.Data.DayOfTheWeekCollection days = ((Microsoft.Exchange.WebServices.Data.Recurrence.WeeklyPattern)week).DaysOfTheWeek;
RecurrenceDays telerikdays = new RecurrenceDays();
foreach (DayOfWeek d in days)
{
switch (d)
{
case DayOfWeek.Friday: telerikdays.AddDay(RecurrenceDays.Friday); break;
case DayOfWeek.Saturday: telerikdays.AddDay(RecurrenceDays.Saturday); break;
case DayOfWeek.Sunday: telerikdays.AddDay(RecurrenceDays.Sunday); break;
case DayOfWeek.Monday: telerikdays.AddDay(RecurrenceDays.Monday); break;
case DayOfWeek.Tuesday: telerikdays.AddDay(RecurrenceDays.Tuesday); break;
case DayOfWeek.Wednesday: telerikdays.AddDay(RecurrenceDays.Wednesday); break;
case DayOfWeek.Thursday: telerikdays.AddDay(RecurrenceDays.Thursday); break;
}
}
pat.DaysOfWeekMask = telerikdays;