- WPF(XAML, XBAP, .NET4.0)GUIプログラミング Part18
754 :デフォルトの名無しさん[sage]:2015/02/24(火) 10:55:38.15 ID:9wamdPj6 - >>752
> 3が一番近い気がするが え、そうなんですか。俺はいろいろ勘違いしてた気がする・・・。 例えばTwitterクライアントだと、こんな感じですか。 class TwitterModel {} class TwitterVM { private TwitterModel tweet; } class TwitterVMCollection { private Collection<TwitterVM > tweetVMCollection; } これだと、「tweetの追加メソッド」はどこにあるんでしょうか?
| - WPF(XAML, XBAP, .NET4.0)GUIプログラミング Part18
756 :デフォルトの名無しさん[sage]:2015/02/24(火) 13:42:16.16 ID:9wamdPj6 - >>755
ますます混乱してきました。 class TweetCollection (Model1) { private Collection<TweetModel> tweets; } class TweetModel (Model2) {} class TweetCollectionVM (VM1) { private TweetCollection tweets; private Collection<TweeVM> tweetVMCollection; } class TweetVM (VM2) { private TweetModel tweet; } ということなんでしょうか・・・。
| - WPF(XAML, XBAP, .NET4.0)GUIプログラミング Part18
758 :デフォルトの名無しさん[sage]:2015/02/24(火) 19:00:17.21 ID:9wamdPj6 - >>757
もともと、ぼんやりと持っていたMVVMのイメージと全然違ったんですが、あるオブジェクト(Model)と、その集合を 扱う場合、一般的にその構造にするものなのでしょうか?
|
|