バージョン 24.2 (最新)

SetPropertyFromStyle メソッド

スタイルからプロパティ値を抽出して、DependencyObject で設定します
シンタックス
public static bool SetPropertyFromStyle( 
   DependencyObject target,
   DependencyProperty targetProperty,
   Style source,
   DependencyProperty sourceProperty,
   bool walkUpBasedOnChain
)

パラメータ

target
プロパティ設定を受け取るターゲット
targetProperty
設定するプロパティ
source
設定を含むスタイル
sourceProperty
抽出するプロパティ
walkUpBasedOnChain
'BasedOn' スタイル チェーンを検索する場合は True。

戻り値の型

値が見つかり設定された場合は True。
参照