向 ViewModel 公开不可绑定的属性 [英] Exposing an unbindable property to the ViewModel
本文介绍了向 ViewModel 公开不可绑定的属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个带有 LongListMultiSelector 的视图.我的 ViewModel 需要访问不可用于绑定的 SelectedItems 属性.不向 ViewModel 公开我的视图,我该如何公开它?
I have a View with a LongListMultiSelector. My ViewModel needs to access the SelectedItems property which is not available for binding. Without exposing my View to my ViewModel, how do I expose it?
推荐答案
这个 另一个问题来自也试图完成同样事情的人提供了解决方案.
This other question from someone also trying to accomplish the same thing has the solution.
这篇关于向 ViewModel 公开不可绑定的属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文