Basic Library for UWP/WinRT XAML
GetFirstParent メソッド

親を返すビジュアルオブジェクト。
検索する型の System.Collections.Generic.IList`1 リスト。
検索の終了点を表すビジュアルオブジェクト。
指定された型のいずれかであるビジュアルオブジェクトの最初の親を表す Windows.UI.Xaml.DependencyObject 値を返します。このメソッドは、目的の親要素が見つかるか、親要素が指定された endObject になるまで、ビジュアルツリーを検索します。
構文
'宣言
 
Public Shared Function GetFirstParent( _
   ByVal reference As Windows.UI.Xaml.DependencyObject, _
   ByVal types As System.Collections.Generic.IList(Of Type), _
   ByVal endObject As Windows.UI.Xaml.DependencyObject _
) As Windows.UI.Xaml.DependencyObject
public static Windows.UI.Xaml.DependencyObject GetFirstParent( 
   Windows.UI.Xaml.DependencyObject reference,
   System.Collections.Generic.IList<Type> types,
   Windows.UI.Xaml.DependencyObject endObject
)

パラメータ

reference
親を返すビジュアルオブジェクト。
types
検索する型の System.Collections.Generic.IList`1 リスト。
endObject
検索の終了点を表すビジュアルオブジェクト。

戻り値の型

ビジュアルオブジェクトの親。
Requirements

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

参照

関連項目

VTreeHelper クラス
VTreeHelper メンバ

Send Feedback