Class TreeNode
public class TreeNode : Node, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient, INode, ITreeNode
- Inheritance
-
TreeNode
- Implements
- Derived
- Inherited Members
- Extension Methods
Fields
IsExpandedProperty
public static readonly DependencyProperty IsExpandedProperty
Field Value
SpanProperty
public static readonly DependencyProperty SpanProperty
Field Value
Properties
DefaultKey
public static ComponentResourceKey DefaultKey { get; }
Property Value
IsExpanded
public bool IsExpanded { get; set; }
Property Value
NodeDesiredSize
public Size NodeDesiredSize { get; protected set; }
Property Value
Span
public double Span { get; set; }
Property Value
Methods
ArrangeNode(Point, Func<Point, Point>)
public virtual void ArrangeNode(Point point, Func<Point, Point> transfor)
Parameters
Delete()
删除图层上的元素
public override void Delete()
Foreach(Action<TreeNode>)
后续遍历 先执行子节点
public void Foreach(Action<TreeNode> action)
Parameters
GetChildren()
获取所有子节点
public List<TreeNode> GetChildren()
Returns
GetLevel()
public int GetLevel()
Returns
GetParent()
获取父节点
public TreeNode GetParent()
Returns
GetVisiblity()
获取当前节点是否应该显示
protected override bool GetVisiblity()
Returns
MeasureNode()
获取子项树需要的宽度和高度
public virtual Size MeasureNode()
Returns
TranformAll(Vector)
public void TranformAll(Vector vector)
Parameters
vector
Vector