Xamarin Forms,一个ViewModel将数据获取到该属性,但在视图中显示不显示
我有2个视图和2个视图模型,第一个具有一个针对每个类别的按钮,该按钮将值发送到ViewModel命令,该命令将第二个视图/ViewModel与发送的数据一起按下。
该数据是在第二个ViewModel上收到的,但视图为空。
这有什么问题?
照片来自第二视图/viewModel。
I have a 2 Views and 2 ViewModels, the first one has a button for each category that sends a value to the ViewModel Command, which push the second View/ViewModel with the data sent.
That data is received on the second ViewModel but the View is empty.
What could be the problem with that?
The photos are from the second View/ViewModel.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好的,所以@toolmakersteve是对的,问题在于,第二个ViewModel有两个实例,感谢您@ToolMakerSteve :)
Ok, so @ToolmakerSteve was right, the problem was that there was two instances of the second viewmodel, thanks to you @ToolmakerSteve :)