Xamarin Forms Switch Toggled event doesn't bind with viewmodel

前端 未结 4 1033
抹茶落季
抹茶落季 2021-01-12 02:45

I have a Forms XAML Page and in there I have a listview, and each element has a Switch (xamarin default). I can bind the data from the items to the listview, but I cannot su

4条回答
  •  萌比男神i
    2021-01-12 02:57

    If you adhere to Prism framework you may easily wire an event to a command. Your xaml will look like in the following example.

    
    
        
            
                
                    
                        
                    
                
            
        
    
    

提交回复
热议问题