How to get ContentPage's BindingContext from ContentView?

后端 未结 2 1666
情歌与酒
情歌与酒 2021-01-19 08:28

I have the following Contentpage.content, where I set certain binding context.


      
    
&l         


        
2条回答
  •  没有蜡笔的小新
    2021-01-19 09:00

    The BindingContext of the ContentView is usually also the BindingContext of the ContentPage since it is passed down from the parent.

    So you should not even need to set ContentView.BindingContext if you already set the parent ContentPage.BindingContext.

    If I am missing something, please let me know.

提交回复
热议问题