mvvm

Using silverlight datepicker and timepicker together

I'm using the Silverlight DatePicker and TimePicker from the toolkit together to allow a user to select a date and time. They are bound to the same DateTime value on a business object behind the scences. This mostly works okay, except when the date component is changed the time component is wiped. This is kinda logical but probably not t...

Best Solution For Creating MouseOver Preview?

I want to implement functionality that allows a user to move their mouse over a button and a tooltip will appear. The tooltip will display a scaled down preview of a specific ViewModel. I have implemented most of this, but, if I take the simplest approach of basically using a ContentPresenter to present the ViewModel, then every time t...

Right Way to access a View Model from an existing View Model

I am somewhat new to MVVM. I am not sure what the best way is to do what I am trying to do. Here is the scenario: I have a VM that is going to show another window. I can call myNewWindowView.Show(), but first I need to set some data in the VM of my new window. Should I expose both the myNewWindowView and the NewWindowViewModel to th...

MVVM: Using a Messenger only with custom objects to make Send<> "id" unique ?

Hello, what I do not like about the Messenger I use (mvvm light toolkit) that when I register to DateTime and I send something other parts of my application get the datatime data too because they registered to "DateTime" type. To prevent that I have to create always custom objects and wrap my datetime value. Thats stupi. How do you wo...