I'm searching for a linq-to-objects way to get a TreeViewItem from a treeView.
I want to do something like this:
var node =
from TreeViewItem childs in tree.Items
where ((int) childs.Tag) == 1000
select childs;
string tag = ((TreeViewItem)node).Tag.ToString();
Then I want to append children to this node.
Thanks.