a dispatcher for NotificationObject

前端 未结 3 1885
陌清茗
陌清茗 2021-01-24 10:11

I have 2 NotificationObject objects that act as view models. First NotificationObject contains properties that are binded to the view of a specific control, and second Notificat

3条回答
  •  我在风中等你
    2021-01-24 10:31

    Had to look for the Dispatcher in view's UserControl object, not in the model view's NotificationObject. I think that it is not good to reference views from model views in MVVM, but I haven't found a better solution yet.

提交回复
热议问题