ここ何回か、なんちゃって書籍ビューアを題材にした、Xamarin.Formsアプリを紹介してきました。 github.com 今回は、そのコードの解説を試みたいと思います。 今回紹介するコードは、以下の要素が含まれています。 Xamarin.Forms Prism for Xamarin.Forms ReactiveProperty MVVM Pattern Moq ところで皆さんは、MVVMパターンを取り扱った以下のエントリーを読まれたことはあるでしょうか? ugaya40.hateblo.jp こちらのエントリーの中で以下のようなに書かれています。 ViewModelはModelの影(そしてまたViewはViewModelの影) ModelについてViewModelが行うことは、イベントに対する反応と戻り値のないメソッドの呼び出ししかない事 実はこの二つのことを、今回紹介するアプリケー