PageRenderTime 18ms CodeModel.GetById 13ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

/Visual Studio 2008/CSWPFAnimationWhenDataChanged/Readme.txt

#
Plain Text | 32 lines | 19 code | 13 blank | 0 comment | 0 complexity | 00e5a108d30caeda79da851c420eb4d6 MD5 | raw file
 1================================================================================
 2WPF APPLICATION : CSWPFAnimationWhenDataChanged Project Overview
 3       
 4                       CSWPFAnimationWhenDataChanged Sample
 5                        
 6===============================================================================
 7
 8/////////////////////////////////////////////////////////////////////////////
 9Use:
10
11The sample demonstrates how to trigger animation when  cell value in the datagrid
12changed.
13   
14
15/////////////////////////////////////////////////////////////////////////////
16Code Logic:
17
18   1. create a style for DataGrid cell.
19   2. In the cell style, we add Binding.TargetUpdated event triggers. 
20   3. When the trigger condition is fulfilled, start the animation. 
21   4. In the AutoGeneratingColumn event handler, we set NotifyOnTargetUpdated
22      to true in order to trigger TargetUpdated event.
23   5. In a button click event handler, apply the cell style to each column.
24   
25 
26 
27   
28/////////////////////////////////////////////////////////////////////////////
29References:
30
31
32/////////////////////////////////////////////////////////////////////////////