コード例 #1
0
		public void Panel_NullGeneratorByDefault ()
		{
			Assert.Throws<InvalidOperationException> (() => {
				var g = new CustomVirtualizingPanel ().ItemContainerGenerator;
			});
		}
コード例 #2
0
ファイル: PanelTest.cs プロジェクト: dfr0/moon
		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 ();
		}