how to load wpf usercontrol in MVVM pattern

前端 未结 6 1818
刺人心
刺人心 2021-02-06 12:36

I\'m creating a wpf user control which is in mvvm pattern. So we have : view(with no code in codebehind file), viewmodel,model,dataaccess files.

I have MainWindo

6条回答
  •  广开言路
    2021-02-06 12:54

    We can use ObjectDataProvider to call a method inside an object ..as follows :

    
    

    Is there anyway to do the same using DataTemplate

提交回复
热议问题