MvvmCross : Empty binding target passed to MvxTargetBindingFactoryRegistry
<p>I created an Android application with Xamarin and MvvmCross.
I want to bind some views (text, editing text, button) to my ViewModel. Nothing strange well so far. But my bindings don’t apply… When I use typed FindViewById, I don’t get the traced error but bindings doesn’t apply.</p>

<p>When I run the application, I have the following trace:</p>

<pre><code>MvxBind:Error: Empty binding target passed to MvxTargetBindingFactoryRegistry
MvxBind:Warning: Failed to create target binding for binding for TextProperty
</code></pre>

<p>My override of <code>OnCreate(Bundle bundle)</code> void is : </p>

<pre><code>SetContentView(Resource.Layout.Reference);
var referenceTextView = FindViewById(Resource.Id.referenceEditView); // untyped FindViewById
var siteTextView = FindViewById&lt;TextView&gt;(Resource.Id.siteTextView); // typed FindViewById&lt;T&gt;
//var goButton = FindViewById&lt;Button&gt;(Resource.Id.goButton);
var bindingsSet = this.CreateBindingSet&lt;ReferenceView, ReferenceViewModel&gt;();
bindingsSet.Bind(referenceTextView).To(vm =&gt; vm.Reference).Mode(MvxBindingMode.TwoWay);
bindingsSet.Bind(siteTextView).To(vm =&gt; vm.Site);
//bindingsSet.Bind(goButton).To(vm =&gt; vm.GoCommand);
bindingsSet.Apply();
base.OnCreate(bundle);
</code></pre>

<p>I’ve tried to do in the AXML :</p>

<pre><code>&lt;TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:id="@+id/siteTextView"
    android:text="####"
    local:MvxBind="Text Site"
    android:gravity="center" /&gt;
&lt;EditText
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:id="@+id/referenceTextView"
    android:hint="Numéro de dossier"
    local:MvxBind="Text Reference" /&gt;
&lt;Button
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:text="Accéder"
    android:id="@+id/goButton"
    local:MvxBind="Click GoCommand" /&gt;
</code></pre>

<p>The getters and setters of my properties use RaiseAndSetIfChanged method :</p>

<pre><code>private string _reference;
public string Reference
{
    get { return _reference; }
    set { this.RaiseAndSetIfChanged(ref _reference, value, () =&gt; Reference); }
}
</code></pre>

<p>I’ve the same <code>LinkerPleaseInclude</code> class than <a href="https://github.com/MvvmCross/MvvmCross-Tutorials/blob/master/ApiExamples/ApiExamples.Droid/LinkerPleaseInclude.cs" rel="nofollow">LinkerPleaseInclude</a> original class.
My setup inherits from <code>MvxAndroidSetup</code> class
And on other ViewModels, the bindings are applied correctly.</p>