private void treeViewTemplate_AfterSelect(object sender, TreeViewEventArgs e) { this.m_attribute = null; this.m_selection = e.Node.Tag as DocModelRule; UpdateCommands(); if (this.SelectionChanged != null) { this.SelectionChanged(this, EventArgs.Empty); } }