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 }); }
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 }); }