えムナウ Blog

えムナウ の なすがまま

目次

Blog 利用状況

ニュース


follow mnow at http://twitter.com


えムナウのプログラミングのページ

INETAJ

書庫

日記カテゴリ

ギャラリ

MVPVM パターン

WPF はなんかおかしい、ビヘイビアーといいデータテンプレートセレクターといい、View と ViewModel を両方知らないと達成できないものがそこここにちりばめられている。

特にデータテンプレートセレクターはコントローラ的な性格をもつものだと思っっていた。

SilverlightではテンプレートセレクターがないのでAppのPartialとしてViewModel を初期化してView を切り替えるものを作成し、ビジネスにからデータを取得する機能も便利なので付け加えた。

一方で更新系はViewModel からビジネスを呼ぶほうが断然便利なのでそのルートは確保したままにしている。
これは層を追加することによってアプリケーションファザード的な薄皮をプレゼンターに作る無駄なコーディングが増えることを嫌ったせいだ。

WPFでもその考えを踏襲して作成している。

去年のMSDNマガジンに「WPF 向けのモデル - ビュー - プレゼンター - ビューモデル設計パターン」という記事があった。
http://msdn.microsoft.com/ja-jp/magazine/hh580734.aspx

これは、私のやり方と合致するものだと思った。

図にするとこんな感じだが、MSDNマガジンとは、2点異なっている。

1)更新系はViewModel からビジネスを呼ぶ。
2)View から ViewModel (ICommand) を経由してPresenterを呼ぶ。

投稿日時 : 2012年1月6日 19:34

コメントを追加

# If some one desires to be updated with most up-to-date technologies therefore he must be pay a quick visit this website and be up to date every day. 2019/04/07 18:56 If some one desires to be updated with most up-to-

If some one desires to be updated with most up-to-date technologies therefore he must be pay a quick visit
this website and be up to date every day.

# An impressive share! I've just forwarded this onto a co-worker who has been doing a little research on this. And he actually ordered me breakfast simply because I stumbled upon it for him... lol. So let me reword this.... Thanks for the meal!! But yeah 2019/05/04 7:50 An impressive share! I've just forwarded this onto

An impressive share! I've just forwarded this onto a co-worker
who has been doing a little research on this. And he actually ordered me breakfast
simply because I stumbled upon it for him...
lol. So let me reword this.... Thanks for the meal!! But yeah,
thanks for spending time to discuss this matter here on your internet
site.

# Hello colleagues, its enormous post regarding educationand entirely defined, keep it up all the time. 2019/05/13 20:07 Hello colleagues, its enormous post regarding educ

Hello colleagues, its enormous post regarding educationand entirely defined,
keep it up all the time.

# My brother recommended I might like this website. He was entirely right. This post actually made my day. You can not imagine just how much time I had spent for this information! Thanks! 2019/09/05 17:09 My brother recommended I might like this website.

My brother recommended I might like this website. He was entirely right.

This post actually made my day. You can not imagine just how much time I had spent for this information! Thanks!

# kiRkgGCJeRHaQC 2021/07/03 3:23 https://amzn.to/365xyVY

My brother recommended I would possibly like this website.

# wUWRjjzgxPw 2021/07/03 4:53 https://www.blogger.com/profile/060647091882378654

This particular blog is really entertaining additionally amusing. I have picked up helluva useful tips out of this amazing blog. I ad love to return every once in a while. Cheers!

# re: MVPVM ???? 2021/07/07 2:14 what is hcq

chloroquine phosphate cvs https://chloroquineorigin.com/# hydroxy cloroquine

# re: MVPVM ???? 2021/07/13 2:17 hydrochlroquine

cloroquina 250 mg https://chloroquineorigin.com/# hcq malaria

# re: MVPVM ???? 2021/07/23 23:37 hcq 200

side effects of chloroquine https://chloroquineorigin.com/# can hydroxychloroquine cause blindness

# RSoytTeEsBFiRjPbz 2022/04/19 10:44 markus

http://imrdsoacha.gov.co/silvitra-120mg-qrms

# rotfnygbtzgd 2022/05/30 9:15 agvznuut

erythromycin https://erythromycinn.com/#

# do you need a prescription for hydroxychloroquine 2022/12/26 4:52 MorrisReaks

https://www.hydroxychloroquinex.com/ generic hydroxychloroquine 200 mg

# doors2.txt;1 2023/03/14 15:04 fXHVMHUzugZEJ

doors2.txt;1

# doors2.txt;1 2023/03/14 16:36 XonwZWvxaNHbZfmahb

doors2.txt;1

# adoult dating 2023/08/09 19:28 WayneGurry

connecting singles games: http://datingtopreview.com/# - date free site

# cytotec buy online usa 2023/08/26 6:18 Georgejep

http://avodart.pro/# where to get generic avodart prices

# buy cytotec pills online cheap 2023/08/27 7:12 Georgejep

https://misoprostol.guru/# cytotec online

# comprare farmaci online con ricetta 2023/09/24 20:16 Archieonelf

https://farmaciabarata.pro/# farmacias baratas online envГ­o gratis

# farmacia online miglior prezzo 2023/09/25 20:19 Archieonelf

http://pharmacieenligne.icu/# pharmacie ouverte 24/24

# farmacie on line spedizione gratuita 2023/09/26 20:47 Archieonelf

https://farmaciaonline.men/# comprare farmaci online all'estero

# Paxlovid over the counter https://paxlovid.bid/ buy paxlovid online 2023/10/26 2:48 Paxlovid

Paxlovid over the counter https://paxlovid.bid/ buy paxlovid online

# doxycycline tetracycline https://doxycycline.forum/ doxycycline online 2023/11/25 16:36 Doxycycline

doxycycline tetracycline https://doxycycline.forum/ doxycycline online

# farmacie online sicure https://farmaciait.pro/ migliori farmacie online 2023 2023/12/04 12:58 Farmacia

farmacie online sicure https://farmaciait.pro/ migliori farmacie online 2023

# buy cytotec online fast delivery https://cytotec.icu/ Abortion pills online 2024/01/05 15:08 Cytotec

buy cytotec online fast delivery https://cytotec.icu/ Abortion pills online

# online prednisone https://prednisonepharm.store/ prednisone tablet 100 mg 2024/01/20 18:59 Prednisone

online prednisone https://prednisonepharm.store/ prednisone tablet 100 mg

# abella danger filmleri https://abelladanger.online/ Abella Danger
2024/03/04 22:30 Adella

abella danger filmleri https://abelladanger.online/ Abella Danger

# jogar aviator online https://aviatorjogar.online/ - aviator pin up
2024/03/13 13:46 BraAvia

jogar aviator online https://aviatorjogar.online/ - aviator pin up

# sweet bonanza kazanç https://sweetbonanza.bid/ - sweet bonanza yasal site
2024/03/28 1:10 Bonanzaj

sweet bonanza kazanç https://sweetbonanza.bid/ - sweet bonanza yasal site

# pin up: https://pinupgiris.fun/ pin up indir
2024/03/28 10:31 GirisUp

pin up: https://pinupgiris.fun/ pin up indir

タイトル
名前
URL
コメント