BindableProperty in ContentView not working

后端 未结 1 464
甜味超标
甜味超标 2021-01-12 11:41

I made a very simple Yes/No RadioBox control.

In it\'s code behind I have the following BindableProperty:

    public static readonly Bin         


        
相关标签:
1条回答
  • 2021-01-12 12:12

    I figured it out after a total of 4 hours wasted...

    Never do BindingContext = this; in your ContentView, as it hijacks the context from the Page trying to databind to it. Instead use Content.BindingContext = this;

    0 讨论(0)
提交回复
热议问题