#author("2018-03-15T10:57:03+09:00","","") #author("2018-03-15T10:58:46+09:00","","") [[WindowsPhone開発のためのPrism+ReactiveProperty基本]] #contents * WindowsPhone開発のためのPrism+ReactiveProperty基本 [#cc40c264] * WindowsPhone開発のためのPrism+ReactiveProperty基本 [#mafe46ec] ** Prismとは [#o506c1bf] ** Prismとは [#lec21139] - Microsoft Patterns & Practicesチーム製のMVVMフレームワーク -- 以下のプラットフォームをサポート --- WPF --- Silverlight --- Windows store app --- Windows Phone(←this Main Thama) --- Xamarin - MS P&PからMVP主体のチームに移管された ** Prism.StoreApps [#h07121af] ** Prism.StoreApps [#n80941fa] Prism.StoreAppsの中から電話向けに説明 ** ReactiveProperty [#z2cb246d] *** What's ReactiveProperty [#x22dd6e7] ** ReactiveProperty [#bf9a9203] *** What's ReactiveProperty [#z5524df3] - Reactive Extensions(Rx)をベースにしたMVVMサポートライブラリ - V ⇔ ViewModel ⇔ Modelの間でRxをシームレスに繋ぐのが特徴 - 以下のクラスを提供 -- ReactiveProperty<T> class -- ReactiveCommand class -- ReadOnlyReactiveCollection<T> class - その他拡張メソッドを提供 -- INotifyPropertyChangedの拡張メソッド --- ToReactivePropertyAsSynchronized method -- ObserbleCollection<T>の拡張メソッド --- ToReadOnlyReactiveCollection method - ViewModelに定義するプロパティ -- public ReactiveProperty<string> Name { get; private set; }のように定義 -- 以下のように定義 public ReactiveProperty<string> Name { get; private set; } -- コンストラクタで初期化