gpt4 book ai didi

Apply Intermediate check to parent if all child nodes are not checked in Tree view WPF C#(如果在树视图WPF C#中未选中所有子节点,则将中间检查应用于父节点)

转载 作者:bug小助手 更新时间:2023-10-24 18:28:55 26 4
gpt4 key购买 nike



I have a 3 level node Tree View Model:
--Parent
--SubParent
--Child
and all the nodes have a check box so I want to achieve the functionality of intermidiate check, if one child is unchecked then subparent and parent would have a intermidiate check and same for all.

我有一个三级节点树视图模型:--Parent--SubParent--Child,所有节点都有一个复选框,所以我想实现中间检查的功能,如果一个子节点未选中,则子父节点和父节点将有一个中间检查,并且对所有节点都相同。


I want to achieve this using triggers.

我想使用触发器来实现这一点。


更多回答

What does your TreeViewModel object look like? What is a sub-parent? Some C# code of it would be helpful to answer your question. Usually hierarchical object models track only child and parent instances; then climb or descend the hiearchy to get levels beyond the child/parent.

您的TreeViewModel对象是什么样子的?什么是子父母?其中的一些C#代码将有助于回答您的问题。通常,分层对象模型只跟踪子实例和父实例;然后沿着层次结构爬升或下降,以获得子/父实例之外的级别。

优秀答案推荐
更多回答

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com