public void CrossXReference(bool useCompiledXaml) { var layout = new XReference(useCompiledXaml); Assert.AreSame(layout.label0, layout.label1.BindingContext); Assert.AreSame(layout.label1, layout.label0.BindingContext); }
public void CrossXReference (bool useCompiledXaml) { var layout = new XReference (useCompiledXaml); Assert.AreSame (layout.label0, layout.label1.BindingContext); Assert.AreSame (layout.label1, layout.label0.BindingContext); }
public void XReferenceAsBindingSource(bool useCompiledXaml) { var layout = new XReference(useCompiledXaml); Assert.AreEqual("foo", layout.entry.Text); Assert.AreEqual("bar", layout.entry.Placeholder); }
public void XReferenceAsBindingSource (bool useCompiledXaml) { var layout = new XReference (useCompiledXaml); Assert.AreEqual ("foo", layout.entry.Text); Assert.AreEqual ("bar", layout.entry.Placeholder); }
public void XReferenceAsCommandParameterToSelf (bool useCompiledXaml) { var layout = new XReference (useCompiledXaml); var button = layout.aButton; button.BindingContext = new { ButtonClickCommand = new Command (o => { if (o == button) Assert.Pass (); }) }; ((IButtonController) button).SendClicked (); Assert.Fail (); }
public void XReferenceAsCommandParameterToSelf(bool useCompiledXaml) { var layout = new XReference(useCompiledXaml); var button = layout.aButton; button.BindingContext = new { ButtonClickCommand = new Command(o => { if (o == button) { Assert.Pass(); } }) }; ((IButtonController)button).SendClicked(); Assert.Fail(); }
public void SupportsXReference(bool useCompiledXaml) { var layout = new XReference(useCompiledXaml); Assert.AreSame(layout.image, layout.imageView.Content); }
public void SupportsXReference (bool useCompiledXaml) { var layout = new XReference (useCompiledXaml); Assert.AreSame (layout.image, layout.imageView.Content); }