Forum Xamarin.Android

Bind layout (view) to VM using Caliburn

alexr22alexr22 Member
edited January 2018 in Xamarin.Android

Hi guys,

I'm trying to create an Android app, I want to use Caliburn.Micro, but I don't understand how to attach my Main.axml to Activity and VM.
I've got the same file that in the example (which is not full and doesn't have Main.axml set).
github.com/Caliburn-Micro/Caliburn.Micro/tree/master/samples/setup/Setup.Android

Could anyone suggest how to do it?
For example, I've got

in my Main.axml.
In the MainViewModel I've got
public MainViewModel()
{
TestText = "Tesssst";
}
private string testText;

            public string TestText
            {
                get { return testText; }
                set { Set(ref testText, value); }
            }

But the string in the UI is not updated (it's missing actually...). What to do?

Tagged:
Sign In or Register to comment.