Menu

#9 SelectionChangedEventArgs

open
nobody
None
5
2007-09-30
2007-09-30
Alexis
No

In order to listen a much more precise notification about selection changes, it would be really nice to have an SelectionChangedEventArgs which describe the selection change that happens in SelectionChanged event.

As example, in my applications, I'm using an MVC pattern, the selection is part of my model, separated from TreeView which is only one of many views upon my model (each view have a selection which reflect the one in my model).

For now I'm invalidating the full content of selection in model side each time the selection changed in TreeView, which is not optimal.

Thank you !

Alexis.

Discussion

  • Nobody/Anonymous

    Logged In: NO

    I have almost exactly the same problem. Perhaps this problem would be solved by using ObservableCollection and ReadOnlyObservableCollection?

    One other thing that would be REALLY nice would be to have fewer private and internal functions and members and more protected ones. As it is it gets very difficult to override functionality in the control without making changes to the source.

    All in all, TreeViewAdv is a fantastic piece of work, and if I can be of any help please let me know.

    Bill Cook _/)_

     
  • Nobody/Anonymous

    Logged In: NO

    Further comment, I think it would be great if the selection set implemented INotifyCollectionChanged...

     
  • Nobody/Anonymous

    Logged In: NO

    OK, never mind on my implementation suggestion, as i see that's 3.0 functionality. Either way, something like it would sure be nice...

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.