Click here to Skip to main content
15,914,327 members

Comments by SteveAdey (Top 71 by date)

SteveAdey 20-Jun-12 16:43pm View    
I'd read some more books on WPF.
SteveAdey 20-Jun-12 16:40pm View    
I sincerely hope you don't have INotifyProperty on your model. The model should be light weight and free from knowing anything about business logic or property changes. Validation should be done with a separate class or service that is used by the view model. That service will use the model in its validation, but at no stage should the validation logic be inside the model. This will hamper reuse.
SteveAdey 3-Apr-12 17:32pm View    
Can you post some code, as this should work.
SteveAdey 27-Mar-12 1:24am View    
Ok, the quickest way I can think of at the moment (and it is 6 o'clock in the morning here), is to add another dependency property to your control. Something like DoCalc which is a bool and listens for a property change in PropertyMetadata. Put the a property on your ViewModel called the same. Bind your control's DoCalc to your ViewModel's DoCalc. When the menu item function is run set DoCalc=true. This will trigger the property changed event in your control. Do your stuff, set the MyProperty and then reset DoCalc=false. This should now do what you need :-)
SteveAdey 26-Mar-12 18:31pm View    
If you'd like to post some code, I can take a look.