Binding TreeView to rules.