示例#1
0
文件: Page.xaml.cs 项目: dfr0/moon
		private void DoTemplateLookups (MyTextBox elem)
		{
			debug_panel.Children.Add (new TextBlock () { Text = String.Format ("Template Lookups from {0} ({1})", elem.Name, elem) });

			debug_panel.Children.Add (new TextBlock () { Text = String.Format ("{0}.textBoxCanvas: {1}", elem, elem.GetTemplateChild_ ("textBoxCanvas")) });
			debug_panel.Children.Add (new TextBlock () { Text = String.Format ("{0}.ContentElement: {1}", elem, elem.GetTemplateChild_ ("ContentElement")) });
			debug_panel.Children.Add (new Canvas () { Height = 20 });
		}
示例#2
0
文件: Page.xaml.cs 项目: ynkbt/moon
        private void DoTemplateLookups(MyTextBox elem)
        {
            debug_panel.Children.Add(new TextBlock()
            {
                Text = String.Format("Template Lookups from {0} ({1})", elem.Name, elem)
            });

            debug_panel.Children.Add(new TextBlock()
            {
                Text = String.Format("{0}.textBoxCanvas: {1}", elem, elem.GetTemplateChild_("textBoxCanvas"))
            });
            debug_panel.Children.Add(new TextBlock()
            {
                Text = String.Format("{0}.ContentElement: {1}", elem, elem.GetTemplateChild_("ContentElement"))
            });
            debug_panel.Children.Add(new Canvas()
            {
                Height = 20
            });
        }