I want to implement a control with a specifiable DataSource property and it would be great if I could inheri开发者_如何学Pythont and the type of the DataSource implements some sort of Hierarchical interface with properties and methods ensured.
Does .NET supply such an interface? Googling revealed nothing.
There is a HierarchicalDataTemplate
, see this SO question.
Possibly you are after the IBindingList interface.
精彩评论