Basic Library for UWP/WinRT XAML
GetParentOfType(DependencyObject,Type) メソッド

親を返すビジュアルオブジェクト。
検索する親要素の System.Type
指定された型のビジュアルオブジェクトの親を表す Windows.UI.Xaml.DependencyObject 値を返します。このメソッドは、目的の親要素が見つかるか、親要素が null になるまで、ビジュアルツリーを検索します。
構文
'宣言
 
Public Overloads Shared Function GetParentOfType( _
   ByVal reference As Windows.UI.Xaml.DependencyObject, _
   ByVal type As System.Type _
) As Windows.UI.Xaml.DependencyObject
public static Windows.UI.Xaml.DependencyObject GetParentOfType( 
   Windows.UI.Xaml.DependencyObject reference,
   System.Type type
)

パラメータ

reference
親を返すビジュアルオブジェクト。
type
検索する親要素の System.Type

戻り値の型

ビジュアルオブジェクトの親。
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