mvvmcross binding on switch fails on release

前端 未结 1 791
南方客
南方客 2021-01-12 07:17

I have a weird bug in my MVVMCross app.

Considering the following scenario:



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

    Since MvvmCross uses reflection to perform databinding, the linker is not seeing the Checked property and is not including it in your binary. There is a file name LinkerPleaseInclude.cs that you can edit to add a reference to this property.

    Something like:

    public void Include(Switch @switch)
    {
        @switch.CheckedChange += (sender, args) => @switch.Checked = !@switch.Checked;
    }
    
    0 讨论(0)
提交回复
热议问题