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 TryFindVisualParentElementByName Method

[Missing <summary> documentation for "M:BionicCode.Utilities.Net.Framework.Extensions.HelperExtensions.TryFindVisualParentElementByName(System.Windows.DependencyObject,System.String,System.Windows.FrameworkElement@)"]

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 TryFindVisualParentElementByName(
    	this DependencyObject child,
    	string elementName,
    	out FrameworkElement resultElement
    )

    <ExtensionAttribute>
    Public Shared Function TryFindVisualParentElementByName (
    	child As DependencyObject,
    	elementName As String,
    	<OutAttribute> ByRef resultElement As FrameworkElement
    ) As Boolean

    Dim child As DependencyObject
    Dim elementName As String
    Dim resultElement As FrameworkElement
    Dim returnValue As Boolean

    returnValue = child.TryFindVisualParentElementByName(elementName,
    	resultElement)

    public:
    [ExtensionAttribute]
    static bool TryFindVisualParentElementByName(
    	DependencyObject^ child,
    	String^ elementName,
    	[OutAttribute] FrameworkElement^% resultElement
    )

    [<ExtensionAttribute>]
    static member TryFindVisualParentElementByName :
            child : DependencyObject *
            elementName : string *
            resultElement : FrameworkElement byref -> bool

    /** @attribute ExtensionAttribute */
    public static boolean TryFindVisualParentElementByName(
    	DependencyObject child,
    	String elementName,
    	/** @attribute OutAttribute */ /** @ref */FrameworkElement resultElement
    )

    public static function TryFindVisualParentElementByName(
    	child : DependencyObject,
    	elementName : String,
    	resultElement : FrameworkElement
    ) : boolean

    BionicCode.Utilities.Net.Framework.Extensions.HelperExtensions.TryFindVisualParentElementByName = function(child, elementName, resultElement);

     STATIC METHOD TryFindVisualParentElementByName(
    	SELF child AS DependencyObject,
    	elementName AS STRING,
    	resultElement OUT FrameworkElement
    ) AS LOGIC

#### Parameters

child
  Type: System.Windows
  DependencyObject

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

elementName
  Type: System
  String

  [Missing <param name="elementName"/> documentation for "M:BionicCode.Utilities.Net.Framework.Extensions.HelperExtensions.TryFindVisualParentElementByName(System.Windows.DependencyObject,System.String,System.Windows.FrameworkElement@)"]

resultElement
  Type: System.Windows
  FrameworkElement

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

#### Return Value

Type: Boolean

[Missing <returns> documentation for "M:BionicCode.Utilities.Net.Framework.Extensions.HelperExtensions.TryFindVisualParentElementByName(System.Windows.DependencyObject,System.String,System.Windows.FrameworkElement@)"]

#### 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