バージョン 24.2 (最新)

IsDescendantOf(DependencyObject,DependencyObject) メソッド

子孫がポップアップ内にあっても、指定した ancestordescendant の視覚的な親であるかどうかを示します。
シンタックス
public static bool IsDescendantOf( 
   DependencyObject ancestor,
   DependencyObject descendant
)

パラメータ

ancestor
descendant の潜在的な祖先として考慮するための要素
descendant
ancestor の子であるかどうかを決定するために評価される要素

戻り値の型

descendantancestor のツリーにある場合 True。
参照