依存関係プロパティを以下のように定義したとします。
public class PersonFoo : DependencyObject
{
#region 依存関係プロパティ dependency properties
public static readonly DependencyProperty NameProperty =
DependencyProperty.Register("Name", typeof(string), typeof(PersonFoo));
public static readonly DependencyProperty AgeProperty =
DependencyProperty.Register("Age", typeof(int), typeof(PersonFoo));
#endregion
・
・
同じように、PersonBarクラスを作成したいので、PersonFooをコピベしました。
続きを読む・・・