开发者

DomainDataSource and ViewModel, can it be used together?

I want to make use of a DomainDataSource control from the RIA controls on my View, but for query parameters I have to pass the DomainDataSource to my ViewModel, currently I contruct the ViewModel in the code behind of the View and pass the DomainDataSource to the ViewModel.

This works very well as I have full control over the 开发者_JAVA技巧DomainDatasource, but I am now told by my colleagues that the way I do it breaks the pattern.

Is this true, if I pass the dds to my ViewModel do I break the pattern and further is there a way that this can be done or am I forced to fetch data only from the ViewModel.

Thanks in advance


See this post for Colin Blair's answer on this topic

http://forums.silverlight.net/forums/t/198215.aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜