System.Windows.FrameworkElement.FindName C# (CSharp) Method

FindName() public method

public FindName ( string name ) : object
name string
return object
		public new object FindName (string name)
		{
			return base.FindName (name);
		}

Usage Example

Example #1
0
		private void DoLookups (FrameworkElement elem)
		{
			debug_panel.Children.Add (new TextBlock () { Text =  String.Format ("Lookups from {0} ({1})", elem.Name, elem) });

			debug_panel.Children.Add (new TextBlock () { Text = String.Format ("{0}.my_canvas: {1}", elem, elem.FindName ("my_canvas")) });
			debug_panel.Children.Add (new TextBlock () { Text = String.Format ("{0}.sub_element: {1}", elem, elem.FindName ("sub_element")) });
			debug_panel.Children.Add (new TextBlock () { Text = String.Format ("{0}.component_element: {1}", elem, elem.FindName ("component_element")) });
			debug_panel.Children.Add (new Canvas () { Height = 20 });
		}
All Usage Examples Of System.Windows.FrameworkElement::FindName