Xamarin form: How to reference to the parent binding

后端 未结 5 1850
情歌与酒
情歌与酒 2020-12-29 05:42
 
   
      
   

Ass

5条回答
  •  悲&欢浪女
    2020-12-29 06:27

    You need to add BindingContext="{x:Reference viewmodel} inside label.

     
      
        
      
    
    

    in Name_Of_Parent you put name of component. If you use MVVM and ViewModel class you have to add x:Name to your binding Context:

    
        
    
    

    This is documentation which describe it.

提交回复
热议问题