In a simple Monodroid/Mvvmcross project my bindings for a switch do not trigger and I have to use a workaround to complete the behavior. I heard from a college, but am unable to find confirmation that Monodroid doesn't support switches properly yet. Thus I am wondering if this carries to Mvvmcross bindings.
Is MvvmCross unable to bind to a Switch compound button?
Code
SettingsView.axml
<FrameLayout [...]>
<ScrollView [...]>
<LinearLayout [...]>
<Switch
android:id="@+id/userSettingsView_Button"
local:MvxBind="Checked ButtonChecked" />
</LinearLayout>
</ScrollView>
</FFrameLayout>
SettingsViewModel.cs
public class SettingsViewModel : MvxViewModel {
[...]
public bool ButtonChecked {
get [...] set{[...]; RaisePropertyChanged(() => ButtonChecked);}
}
}
I have a version that the axml uses a checked button for legacy android version and the binding (/s/Switch/ToggleButton) works fine. This setup I get a MvxBind error: 6.07 View type not found - Switch.