вторник, 23 февраля 2010 г.

Working with Checkboxes in the WPF TreeView

This article reviews a WPF TreeView whose items contain checkboxes. Each item is bound to a ViewModel object. When a ViewModel object’s check state changes, it applies simple rules to the check state of its parent and child items. This article also shows how to use the attached behavior concept to turn a TreeViewItem into a virtual ToggleButton, which helps make the TreeView’s keyboard interaction simple and intuitive. http://www.codeproject.com/KB/WPF/TreeViewWithCheckBoxes.aspx

Комментариев нет: