Returns a
System.Windows.DependencyObject value that represents the first parent of the visual object which type is one of the specified tyles. Method looks up the visual tree until the desired parent element is found or parent element is equal to the specified endObject.
Parameters
- reference
- The visual whose parent is returned.
- types
- The IList list of types to search for.
- endObject
- The visual representing the end point of search.
Return Value
The parent of the visual.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2