This question is locked. New answers and comments are not allowed.
Hi,
I've a bunch of code that prepares nodes (sets text, expanded, etc) for initial page loads. This works on TreeViewItem instances. I then have another bunch of code for my load on demand nodes. This works on TreeViewItemModel instances. The two sets of code are identical. Any chance you could add an ITreeViewItem interface to both classes that encapsulates Text, Value, Checked etc? That way I could have one set of code that operates on the interface.
Cheers,
Kev
I've a bunch of code that prepares nodes (sets text, expanded, etc) for initial page loads. This works on TreeViewItem instances. I then have another bunch of code for my load on demand nodes. This works on TreeViewItemModel instances. The two sets of code are identical. Any chance you could add an ITreeViewItem interface to both classes that encapsulates Text, Value, Checked etc? That way I could have one set of code that operates on the interface.
Cheers,
Kev