Exemplo n.º 1
0
 /// <summary>
 ///     子级选择发生变化
 /// </summary>
 /// <param name="select">是否选中</param>
 /// <param name="child">子级</param>
 /// <param name="selectItem">选中的对象</param>
 protected internal sealed override void OnChildIsSelectChanged(bool select, TreeItemBase child, TreeItemBase selectItem)
 {
     SelectPath = IsSelected ? null : Header + " > " + child.SelectPath;
     if (isSelected != select)
     {
         isSelected = select;
         RaisePropertyChanged(() => IsSelected);
     }
     Parent?.OnChildIsSelectChanged(IsSelected, this, selectItem);
 }
Exemplo n.º 2
0
 /// <summary>
 ///     子级选择发生变化
 /// </summary>
 /// <param name="select">是否选中</param>
 /// <param name="child">子级</param>
 /// <param name="selectItem">选中的对象</param>
 protected internal override void OnChildIsSelectChanged(bool select, TreeItemBase child, TreeItemBase selectItem)
 {
     SelectPath = IsSelected ? null : child.SelectPath;
     if (isSelected != select)
     {
         isSelected = select;
         RaisePropertyChanged(() => IsSelected);
     }
     SelectItem = selectItem as TreeItem;
 }
Exemplo n.º 3
0
 /// <summary>
 ///     子级选择发生变化
 /// </summary>
 /// <param name="select">是否选中</param>
 /// <param name="child">子级</param>
 /// <param name="selectItem">选中的对象</param>
 protected internal abstract void OnChildIsSelectChanged(bool select, TreeItemBase child, TreeItemBase selectItem);