public void Panel_NullGeneratorByDefault ()
		{
			Assert.Throws<InvalidOperationException> (() => {
				var g = new CustomVirtualizingPanel ().ItemContainerGenerator;
			});
		}
Beispiel #2
0
		public void IsItemsHost_PlainPanel ()
		{
			Panel panel = new StackPanel ();
			Enqueue (() => TestPanel.Children.Add (panel));
			Enqueue (() => Assert.IsFalse (new StackPanel ().IsItemsHost, "#1"));
			Enqueue (() => panel = new CustomVirtualizingPanel ());
			Enqueue (() => Assert.IsFalse (new VirtualizingStackPanel ().IsItemsHost, "#2"));
			EnqueueTestComplete ();
		}