Ejemplo n.º 1
0
			public void DataTriggerInTemplates (bool useCompiledXaml)
			{
				var layout = new Bz30074 (useCompiledXaml);
				Assert.Null (layout.image.Source);

				layout.BindingContext = new {IsSelected = true};
				Assert.AreEqual ("Add.png", ((FileImageSource)layout.image.Source).File);

				layout.BindingContext = new {IsSelected = false};
				Assert.Null (layout.image.Source);
			}
Ejemplo n.º 2
0
            public void DataTriggerInTemplates(bool useCompiledXaml)
            {
                var layout = new Bz30074(useCompiledXaml);

                Assert.Null(layout.image.Source);

                layout.BindingContext = new { IsSelected = true };
                Assert.AreEqual("Add.png", ((FileImageSource)layout.image.Source).File);

                layout.BindingContext = new { IsSelected = false };
                Assert.Null(layout.image.Source);
            }