2010年11月18日木曜日

MVVM:自分自身のプロパティに設定する方法

public int FooProperty
{
  get
  {
      return fooProperty;
  }
  set
  {
       fooProperty = value;
       DispatcherHelper.BeginInvoke(


            System.Windows.Threading.DispatcherPriority.Send


           , new Action(delegate { FooProperty = 100; })


       );
  }
}