title: blinking row in wpf datagrid doesn't work
body: <p>I am stuck with an animation in WPF. I need to animate a row(blink) in the datagrid when in that row all checkboxs options are checked(total 3).</p>
  
  <pre><code>&lt;DataGrid x:Name="employeesGrid" SelectedItem="{Binding SelectedRow, Mode=TwoWay}" SelectedIndex="{Binding SelectedEmployeeIndex, Mode=TwoWay}" Style="{StaticResource dataGridStyle}" ItemsSource="{Binding Employees}"&gt;
  
          &lt;DataGrid.ItemContainerStyle&gt;
              &lt;Style TargetType="{x:Type DataGridRow}"&gt;
                  &lt;Style.Triggers&gt;
                      &lt;DataTrigger Binding="{Binding Path=NumberOfSkills}" Value="3"&gt;
                          &lt;DataTrigger.EnterActions&gt;
                              &lt;BeginStoryboard x:Name="blinkingRow"&gt;
                                  &lt;Storyboard&gt;
                                      &lt;DoubleAnimation Storyboard.TargetProperty="Opacity" From="0" To="1" Duration="0:0:0.5" RepeatBehavior="Forever" AutoReverse="true" /&gt;
                                  &lt;/Storyboard&gt;
                              &lt;/BeginStoryboard&gt;
                          &lt;/DataTrigger.EnterActions&gt;
                          &lt;DataTrigger.ExitActions&gt;
                              &lt;BeginStoryboard x:Name="notBlinkingRow"&gt;
                                  &lt;Storyboard&gt;
                                      &lt;DoubleAnimation Storyboard.TargetProperty="Opacity" From="1" To="1" Duration="0:0:0.5" RepeatBehavior="Forever" AutoReverse="true" /&gt;
                                  &lt;/Storyboard&gt;
                              &lt;/BeginStoryboard&gt;
                          &lt;/DataTrigger.ExitActions&gt;
                      &lt;/DataTrigger&gt;
                  &lt;/Style.Triggers&gt;
              &lt;/Style&gt;
          &lt;/DataGrid.ItemContainerStyle&gt;
  
          &lt;DataGrid.Columns&gt;
              ...
  
              &lt;DataGridTemplateColumn Header="Skills" IsReadOnly="False"&gt;
                  &lt;DataGridTemplateColumn.CellTemplate&gt;
                      &lt;DataTemplate&gt;
                          &lt;ListBox ItemsSource="{Binding Skills, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"&gt;
                              &lt;ListBox.ItemTemplate&gt;
                                  &lt;DataTemplate&gt;
                                      &lt;CheckBox Content="{Binding Name}" IsChecked="{Binding IsChecked, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" 
                                          Command="{Binding Path=DataContext.SaveChangesCommand, RelativeSource={RelativeSource Mode=Self}}" /&gt;
  
                                  &lt;/DataTemplate&gt;
                              &lt;/ListBox.ItemTemplate&gt;
                          &lt;/ListBox&gt;
                      &lt;/DataTemplate&gt;
                  &lt;/DataGridTemplateColumn.CellTemplate&gt;
              &lt;/DataGridTemplateColumn&gt;
  
              ...
  
      &lt;/DataGrid&gt;
  </code></pre>
  
  <p>In view model I have.</p>
  
  <pre><code>public int NumberOfSkills 
      {
          get 
          {
              int count = 0;
              foreach(Skill skill in ((EmployeeViewModel)SelectedRow).Skills)
              {
                  if(skill.IsChecked)
                  {
                      count++;
                  }
              }
              return count;
          }
      }
  </code></pre>
  
  <p>Why this isn't working? I tried a lot of solutions which I finded on the internet, but nothing isn't working. The posted example is very similiar with code on msdn site,so I really don't know what is problem here.</p>