protected override void Dispose(bool disposing) { base.Dispose(disposing); if (PART_ExpanderCell != null) { PART_ExpanderCell.Dispose(); PART_ExpanderCell = null; } UnWireCheckBoxEvent(); }
protected override void OnApplyTemplate() #endif { base.OnApplyTemplate(); PART_ExpanderCell = GetTemplateChild("PART_ExpanderCell") as TreeGridExpander; PART_SelectCheckBox = GetTemplateChild("PART_SelectCheckBox") as CheckBox; if (PART_SelectCheckBox != null) { PART_SelectCheckBox.IsChecked = (bool?)IsChecked; } if (PART_ExpanderCell != null) { PART_ExpanderCell.treeGrid = this.ColumnBase.TreeGrid; } UnWireCheckBoxEvent(); WireCheckBoxEvent(); }