Click here to Skip to main content
15,909,518 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: EventSetter error ? Pin
Mohammad Dayyan19-Jan-09 10:16
Mohammad Dayyan19-Jan-09 10:16 
AnswerRe: EventSetter error ? Pin
User 27100919-Jan-09 15:27
User 27100919-Jan-09 15:27 
GeneralRe: EventSetter error ? Pin
Mohammad Dayyan19-Jan-09 19:17
Mohammad Dayyan19-Jan-09 19:17 
GeneralRe: EventSetter error ? Pin
User 27100920-Jan-09 3:18
User 27100920-Jan-09 3:18 
QuestionShared memory Pin
hirenkshah19-Jan-09 2:05
hirenkshah19-Jan-09 2:05 
AnswerRe: Shared memory Pin
Pete O'Hanlon19-Jan-09 2:17
mvePete O'Hanlon19-Jan-09 2:17 
QuestionRotating Image in 3 directional.. Pin
ravi.vellanky19-Jan-09 1:08
ravi.vellanky19-Jan-09 1:08 
AnswerRe: Rotating Image in 3 directional.. Pin
Pete O'Hanlon19-Jan-09 2:13
mvePete O'Hanlon19-Jan-09 2:13 
AnswerRe: Rotating Image in 3 directional.. Pin
Mohammad Dayyan19-Jan-09 16:39
Mohammad Dayyan19-Jan-09 16:39 
QuestionTo Change Date Color in calendar control Pin
priyagee18-Jan-09 23:41
priyagee18-Jan-09 23:41 
AnswerRe: To Change Date Color in calendar control Pin
Michael Sync29-Jan-09 2:27
Michael Sync29-Jan-09 2:27 
GeneralRe: To Change Date Color in calendar control Pin
nidjain12-Apr-09 21:10
nidjain12-Apr-09 21:10 
QuestionConfig Error Pin
Tauseef A18-Jan-09 23:13
Tauseef A18-Jan-09 23:13 
AnswerRe: Config Error Pin
Michael Sync29-Jan-09 2:28
Michael Sync29-Jan-09 2:28 
QuestionUsing Report Viewer Control in WPF Pin
Naks8318-Jan-09 20:28
Naks8318-Jan-09 20:28 
AnswerRe: Using Report Viewer Control in WPF Pin
User 27100919-Jan-09 2:46
User 27100919-Jan-09 2:46 
GeneralViewModel musings Pin
ColinM12318-Jan-09 12:38
ColinM12318-Jan-09 12:38 
Ramble

I've been looking at using the View-ViewModel-Model pattern in WPF & Siverlight for some small apps.
Often I find the ViewModel is very similar to the Model in my simple apps, but maybe just a few more view specific properties.
Wrapping my Model class in a ViewModel is sometimes problematic.

Say we have an Employee Class and we want to add a IsSelected property so it can be used in the View.
If we create a ViewModel Employee class and add the new IsSelected property all is okay, except....
If any other class, say Company.GetEmployees() returns a List<employee>, then I have to write another wrap to enumerate through the results and transform Employee to ViewModelEmployee.

Possible solution?

Use Extension Methods (don't have Extension Properties)
Then I can just add GetIsSelected, SetIsSelected methods to the base Employee class.

Using an ObjectDataProvider (don't think this is in Silverlight) we can access the GetIsSelected method, using Bindings similar to properties.

At least that's what I'm thinking haven't tried this out yet!

/Ramble


GeneralRe: ViewModel musings Pin
User 27100919-Jan-09 2:52
User 27100919-Jan-09 2:52 
GeneralRe: ViewModel musings Pin
Pete O'Hanlon19-Jan-09 3:29
mvePete O'Hanlon19-Jan-09 3:29 
GeneralRe: ViewModel musings Pin
ColinM12319-Jan-09 18:14
ColinM12319-Jan-09 18:14 
QuestionWCF reference in class library Pin
Michael Ulmann17-Jan-09 21:52
Michael Ulmann17-Jan-09 21:52 
AnswerRe: WCF reference in class library Pin
Michael Ulmann17-Jan-09 22:05
Michael Ulmann17-Jan-09 22:05 
GeneralRe: WCF reference in class library Pin
Snufflufugus18-Jan-09 7:25
Snufflufugus18-Jan-09 7:25 
GeneralRe: WCF reference in class library Pin
Pete O'Hanlon18-Jan-09 8:15
mvePete O'Hanlon18-Jan-09 8:15 
AnswerRe: WCF reference in class library Pin
Ramya Jes4-Mar-10 8:41
Ramya Jes4-Mar-10 8:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.