wpf mvvm .. access view elements in viewmodel

前端 未结 2 1726
有刺的猬
有刺的猬 2021-02-04 17:58

I am in phase of learning wpf/mvvm as per i get to know in vm we declare commands and bind them to view element\'s event rather doing this in codebehind file... what i am not ge

2条回答
  •  囚心锁ツ
    2021-02-04 18:33

    var v=(viewclassname)this.getview();
    

    then you can access the element in the view

提交回复
热议问题