I am using DataTemplate and the Background is bound to a Brush defined by the user.
As an example
<DataTemplate x:Key="ColumnText">
<TextBlock x:Name="TextCell"
Background="{Binding Column.CustBackground}" // DependencyProperty
IsReadOnly="True" />
<DataTemplate.Triggers>
<DataTrigger Binding="{Binding **SomeProperty**}" Value="True">
//Animation Code Here
//.....
</DataTrigger>
</DataTemplate.Triggers>
- I would like to have a blink effect which in my case can be defined as -> "Rapidly changing Background between two colors(current to new or any two)" for a certain number of times (lets say 5 times) at a certain speed.
- After the we have fined the blink effect. i would like to restore back to what ever the previous back ground was.
- Every time some property changes we repeat steps 1 & 2.
Would be great if someone could guide pointers / pusedo code on me on how this can be achieved.
Thank You.
a 5x blink example on a simple path-mousedown:
.xaml
.cs