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 TryFindVisualChildElement TChild Method

[Missing <summary> documentation for "M:BionicCode.Utilities.Net.Framework.Extensions.HelperExtensions.TryFindVisualChildElement``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 TryFindVisualChildElement<TChild>(
    	this DependencyObject parent,
    	out TChild resultElement
    )
    where TChild : DependencyObject

    <ExtensionAttribute>
    Public Shared Function TryFindVisualChildElement(Of TChild As DependencyObject) (
    	parent As DependencyObject,
    	<OutAttribute> ByRef resultElement As TChild
    ) As Boolean

    Dim parent As DependencyObject
    Dim resultElement As TChild
    Dim returnValue As Boolean

    returnValue = parent.TryFindVisualChildElement(resultElement)

    public:
    [ExtensionAttribute]
    generic<typename TChild>
    where TChild : DependencyObject
    static bool TryFindVisualChildElement(
    	DependencyObject^ parent,
    	[OutAttribute] TChild% resultElement
    )

    [<ExtensionAttribute>]
    static member TryFindVisualChildElement :
            parent : DependencyObject *
            resultElement : 'TChild byref -> bool  when 'TChild : 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 TryFindVisualChildElement<TChild>(
    	SELF parent AS DependencyObject,
    	resultElement OUT TChild
    )
    WHERE TChild : DependencyObject
     AS LOGIC

#### Parameters

parent
  Type: System.Windows
  DependencyObject

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

resultElement
  Type: TChild

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

#### Type Parameters

TChild

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

#### Return Value

Type: Boolean

[Missing <returns> documentation for "M:BionicCode.Utilities.Net.Framework.Extensions.HelperExtensions.TryFindVisualChildElement``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