开发者

window singleton

Greetings, In our application user may click on item in datagrid and new window with list of companies is shown based on that item. Client wants this window to be non modal and if window is already opened and user clicks on different item in datagrid this window will be reloaded with new data from item in datagrid. How can we achieve it? application is writt开发者_开发知识库en in wpf


Sounds like a candidate for M-V-VM to me. Fortunatly, WPF lends itself quite well to this pattern

Where the datagrid binds to a data source on your model and your data in the new window binds to a View of the data on the same model and therefore, since you are using DependencyProperties or INotifyPropertyChanged on your model object, the data in the window will update automagically.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜