This sample is derived from the Tree View sample. It adds the definition of the "TriStateCheckBoxButton" which is defined only to be used in a tree.