Пример #1
0
			public void XNameForwardDeclaration (bool useCompiledXaml)
			{
				var page = new Issue1438 (useCompiledXaml);

				var slider = page.FindByName<Slider> ("slider");
				var label = page.FindByName<Label> ("label");
				Assert.AreSame (slider, label.BindingContext);
				Assert.That (slider.Parent, Is.TypeOf<StackLayout> ());
			}
Пример #2
0
            public void XNameForwardDeclaration(bool useCompiledXaml)
            {
                var page = new Issue1438(useCompiledXaml);

                var slider = page.FindByName <Slider>("slider");
                var label  = page.FindByName <Label>("label");

                Assert.AreSame(slider, label.BindingContext);
                Assert.That(slider.Parent, Is.TypeOf <StackLayout>());
            }