バージョン 25.1 (最新)

GetAncestorFromType(DependencyObject,Type,Boolean,DependencyObject,Type) メソッド

タイプに基づいて先祖の親を取得します。
シンタックス
public static DependencyObject GetAncestorFromType( 
   DependencyObject descendant,
   Type type,
   bool allowSubclassOfType,
   DependencyObject stopAtVisual,
   Type stopAtType
)

パラメータ

descendant
type
allowSubclassOfType
stopAtVisual
stopAtType

戻り値の型

指定されたタイプの先祖の親、または見つからない場合は null。
参照