コード例 #1
0
			public void TestDynamicResources (bool useCompiledXaml)
			{
				var layout = new DynamicResource (useCompiledXaml);
				var label = layout.label0;

				Assert.Null (label.Text);

				layout.Resources = new ResourceDictionary { 
					{"FooBar", "FOOBAR"},
				};
				Assert.AreEqual ("FOOBAR", label.Text);
			}
コード例 #2
0
            public void TestDynamicResources(bool useCompiledXaml)
            {
                var layout = new DynamicResource(useCompiledXaml);
                var label  = layout.label0;

                Assert.Null(label.Text);

                layout.Resources = new ResourceDictionary {
                    { "FooBar", "FOOBAR" },
                };
                Assert.AreEqual("FOOBAR", label.Text);
            }