BionicCode.Net
BionicCode.Net
BionicCode.Utilities.Net Namespaces
BionicCode.Utilities.Net.Framework Namespaces
BionicCode.Utilities.Net.Framework.Extensions
HelperExtensions Class
HelperExtensions Methods
FindVisualChildElements(TChildren) Method
TryFindVisualChildElement(TChild) Method
TryFindVisualChildElementByName Method
TryFindVisualParentElement(TParent) Method
TryFindVisualParentElementByName Method

| # HelperExtensions TryFindVisualParentElement TParent Method

[Missing <summary> documentation for "M:BionicCode.Utilities.Net.Framework.Extensions.HelperExtensions.TryFindVisualParentElement``1(System.Windows.DependencyObject,``0@)"]

Namespace: BionicCode.Utilities.Net.Framework.Extensions
Assembly: BionicCode.Utilities.Net.Framework (in BionicCode.Utilities.Net.Framework.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
VB
C++
F#
J#
JScript
JavaScript
ASP.NET
X#
Copy

    public static bool TryFindVisualParentElement<TParent>(
    	this DependencyObject child,
    	out TParent resultElement
    )
    where TParent : DependencyObject

    <ExtensionAttribute>
    Public Shared Function TryFindVisualParentElement(Of TParent As DependencyObject) (
    	child As DependencyObject,
    	<OutAttribute> ByRef resultElement As TParent
    ) As Boolean

    Dim child As DependencyObject
    Dim resultElement As TParent
    Dim returnValue As Boolean

    returnValue = child.TryFindVisualParentElement(resultElement)

    public:
    [ExtensionAttribute]
    generic<typename TParent>
    where TParent : DependencyObject
    static bool TryFindVisualParentElement(
    	DependencyObject^ child,
    	[OutAttribute] TParent% resultElement
    )

    [<ExtensionAttribute>]
    static member TryFindVisualParentElement :
            child : DependencyObject *
            resultElement : 'TParent byref -> bool  when 'TParent : DependencyObject

    J# supports the use of generic APIs, but not the declaration of new ones.

    JScript does not support generic types or methods.

    JavaScript does not support generic types or methods.

     STATIC METHOD TryFindVisualParentElement<TParent>(
    	SELF child AS DependencyObject,
    	resultElement OUT TParent
    )
    WHERE TParent : DependencyObject
     AS LOGIC

#### Parameters

child
  Type: System.Windows
  DependencyObject

  [Missing <param name="child"/> documentation for "M:BionicCode.Utilities.Net.Framework.Extensions.HelperExtensions.TryFindVisualParentElement``1(System.Windows.DependencyObject,``0@)"]

resultElement
  Type: TParent

  [Missing <param name="resultElement"/> documentation for "M:BionicCode.Utilities.Net.Framework.Extensions.HelperExtensions.TryFindVisualParentElement``1(System.Windows.DependencyObject,``0@)"]

#### Type Parameters

TParent

  [Missing <typeparam name="TParent"/> documentation for "M:BionicCode.Utilities.Net.Framework.Extensions.HelperExtensions.TryFindVisualParentElement``1(System.Windows.DependencyObject,``0@)"]

#### Return Value

Type: Boolean

[Missing <returns> documentation for "M:BionicCode.Utilities.Net.Framework.Extensions.HelperExtensions.TryFindVisualParentElement``1(System.Windows.DependencyObject,``0@)"]

#### Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DependencyObject. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also

#### Reference

HelperExtensions Class
BionicCode.Utilities.Net.Framework.Extensions Namespace
Send comments on this topic to BionicCode@outlook.com
https://github.com/BionicCode/BionicCode.Net/blob/master/README.md