WPF TreeView和复选框

WPF TreeView和复选框

问题描述:

如何在XAML中只向树视图的子节点添加复选框?我的目标是有一个树视图,其中父只是一个文本块,所有的孩子是复选框,但一次只能检查一个孩子。我没有问题使整个树视图复选框,但我不知道如何得到我真正想要的任何建议?

How would someone go about adding check boxes to only the children of a tree view in XAML? My goal is to have a tree view where the parent is just a text block and all the children are check boxes but only one child can be checked at a time. I have no problem making the whole the tree view check boxes but I am not sure how to get what I really want Any suggestions?

谢谢。