How to pass Multiple parameters as CommandParameter in InvokeCommandAction In WPF App Using MVVM

前端 未结 2 2046
别跟我提以往
别跟我提以往 2020-12-10 21:58

I am using System.Windows.interactivity.dll to get mouse events in my ViewModel in the following manner.

 

        
2条回答
  •  醉梦人生
    2020-12-10 22:30

    I Agree with Aghilas. That's how it's done. I improved upon Aghilas's code to clarify what was missing. note that "i:InvokeCommandAction.CommandParameter" must be put inside the invokeCommandAction declaration.

        
            
                
                    
                        
                            
                                
                                
                            
                        
                    
                
    
            
        
    

提交回复
热议问题