Where to create parametrized ViewModel?

前端 未结 2 1719
别跟我提以往
别跟我提以往 2020-12-29 12:51

I have recently parametrized my ViewModel\'s contructor. Before that, I was doing this in my window:


    
         


        
2条回答
  •  一整个雨季
    2020-12-29 13:33

    Use an ObjectDataProvider if you want to specify constructor parameters:

    
        
            
                A string parameter
                42
            
        
    
    

提交回复
热议问题