コード例 #1
0
ファイル: InlineCSS.xaml.cs プロジェクト: MIliev11/Samples
            public void InitialValue(bool useCompiledXaml)
            {
                var layout = new InlineCSS(useCompiledXaml);

                Assert.That(layout.BackgroundColor, Is.EqualTo(Color.Green));
                Assert.That(layout.stack.BackgroundColor, Is.EqualTo(Color.Green));
                Assert.That(layout.button.BackgroundColor, Is.EqualTo(Color.Green));
                Assert.That(layout.label.BackgroundColor, Is.EqualTo(VisualElement.BackgroundColorProperty.DefaultValue));
            }
コード例 #2
0
            public void InlineCSSParsed(bool useCompiledXaml)
            {
                var layout = new InlineCSS(useCompiledXaml);

                Assert.That(layout.label.TextColor, Is.EqualTo(Color.Pink));
            }