示例#1
0
 protected override DependencyObject GetContainerForItemOverride()
 {
     var t = new CustomTreeViewItem(_customTreeView);
     t.Expanded += new RoutedEventHandler(t_Expanded);
     return t;
 }
示例#2
0
 protected override DependencyObject GetContainerForItemOverride()
 {
     var tvItem = new CustomTreeViewItem(this);
     tvItem.Expanded += new RoutedEventHandler(OnExpanded);
     return tvItem;
 }