PageRenderTime 50ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/Visual Studio 2008/CSWPFAnimationWhenDataChanged/Readme.txt

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