GetTemplateChild() public method

public GetTemplateChild ( string name ) : DependencyObject
name string
return System.Windows.DependencyObject
示例#1
0
        public void TemplateChild()
        {
            ListBoxPoker box = new ListBoxPoker();

            CreateAsyncTest(box, () => {
                DependencyObject o = box.GetTemplateChild("ScrollViewer");
                Assert.IsNotNull(o);
            });
        }
示例#2
0
文件: ListBoxTest.cs 项目: shana/moon
		public void TemplateChild ()
		{
			ListBoxPoker box = new ListBoxPoker ();

			CreateAsyncTest (box, () => {
				DependencyObject o = box.GetTemplateChild ("ScrollViewer");
				Assert.IsNotNull (o);
			});
		}