How to use two models in a view using Tuple and view model and what is there diffences?

Member Avatar
Member Avatar
+0 forum 3

Hey guys, I am setting my viewmodel as datacontext in my xaml but I override it to my view to make few functions work however to achieve the visibility on some grids and I have a property in my VM can I override my datacontext back to my VM? If so how? I have a stackpanel that has datacontext overriden as my grid and within that stackpanel I need to change the datacontext for a button. Any help will be appreciated thanks

Member Avatar
Member Avatar
+0 forum 1

Hey gang, Looking for some opinions here. I'm working in an ASP.Net MVC2 application. We've built a collection of "domain objects", ie, the data that represents our "real world" problem we're going to solve, and it's also the representation of what will be serialized to the database. Each of these objects has been decorated with DataAnnotations Attributes to denote which properties are required. We plan on doing data validation before the object is persisted to the database. The app itself is kind of like a "wizard"-- we're going to be configuring various parameters on one of the domain objects we're …

Member Avatar
Member Avatar
+1 forum 1

The End.