I am using Xamarin, MVVMCross and visual studio for Android development. Is there any way in android layout in Xamarin to reference the UI component in the VM as shown below in the code?
what is the purpose of having a reference to the entire UI-Component.?
code
<Button
x:Name="buttonItem"
Text="{Binding ButtonText}"
BackgroundColor="{x:Static resx:AppConstants.TransparentColor}"
BorderColor="{x:Static resx:AppConstants.TransparentColor}"
HorizontalOptions="Start"
/>
No you bind the properties of the button to properties in your view model. You don't bind your complete button to something in your view model.