且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在MVVM中绑定控件的可见性?

更新时间:2022-04-28 03:26:41

您好Arjun,

我相信你需要创建一个可见性属性,并将其绑定到View中的ProgressBar的Visibility属性。你可以试试这个

命令绑定里面的DataTemplate
功能; 样本。

I believe you will need to create a Visibility property in the ViewModel and bind it to the ProgressBar's Visibility property in the View. You can try this through the Command binding inside DataTemplate   sample.

Sagar