I added items to a treeview programmatically(with two for loop) and set the tag property to a value for each of an Child item. But there is a problem.
for (int i = 0; i < ParentCount; i++)
rti.Header = Parent[i].Name;
for (int j = 0; j < ChildCount; j++)
rti.Tag = Child[j].Number);
MyRadTreeView.Items.Add(rti); //MyRadTreeView is declared at XAML code.
I want to reach rti's Tag property from any of an event(Selected, SelectionChange...), but none of these events give me the Tag property's value. The Tag's value comes with null.
How can I achieve this issue?