I have a Project which contains three views: A MainView, which contains the two other views. The two sub-views contain Lists of Objects (Let's call them View A and B), which are largely independent. But sometimes there is a connection between the objects, which are contained in the Lists. Since the dawn of time, only Objects from List A "knew" about objects of Type B, Type B has no Idea that A could exist. This was intended behaviour and would be difficult to change. But know I have a Problem: Objects from List B can be deleted, but that is not a good idea when it is referenced by an Object of Type A. Would I would like to do is to somehow "ask" View A, if some of its objects are having a connection to the Object to be deleted. If so, I would inform the user. But how can I model that? The Views A and B don't know each other. Going through the MainView would be "wrong". I would use an event, but If I understand Caliburn correctly, I can only send an event, but cannot recieve feedback. Any Ideas?
相关问题
- ObservableCollection in ViewModel is not updated w
- Is it possible to send a List<Object> in MVV
- How to make an element reference a StaticResource
- Get the selected items of a ListView (MVVM, Calibu
- Get the selected items of a ListView (MVVM, Calibu
相关文章
- Best way to implement MVVM bindings (View <-> V
- Using LiveData to set visibility of TextView
- app:visibleGone cannot resolve on android Databind
- WPF MVVM two-way updates
- Difference between Set() and RaisePropertyChanged(
- Generating interface implementation at runtime
- MVVM, Confused about ViewModelLocator and DataTemp
- WPF + Castle Windsor + MVVM: Locator-DataContext
EventAggregator looks like a solution.
message1 and message2 are completely independent, different types.