Beispiel #1
0
            public void NoConflictsBetweenSharedRDs(bool useCompiledXaml)
            {
                var layout = new TestSharedResourceDictionary(useCompiledXaml);

                Assert.AreEqual(Color.Pink, layout.label.TextColor);
                Assert.AreEqual(Color.Purple, layout.label2.TextColor);
            }
Beispiel #2
0
            public void MergedRDAtAppLevel(bool useCompiledXaml)
            {
                var layout = new TestSharedResourceDictionary(useCompiledXaml);

                Assert.AreEqual("Foo", layout.label3.Text);
            }
Beispiel #3
0
            public void ImplicitStyleCanBeSharedFromSharedRD(bool useCompiledXaml)
            {
                var layout = new TestSharedResourceDictionary(useCompiledXaml);

                Assert.AreEqual(Color.Red, layout.implicitLabel.TextColor);
            }
Beispiel #4
0
            public void MergedResourcesAreFound(bool useCompiledXaml)
            {
                var layout = new TestSharedResourceDictionary(useCompiledXaml);

                Assert.AreEqual(Color.Pink, layout.label.TextColor);
            }