예제 #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);
			}
예제 #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);
            }