Click here to Skip to main content
15,887,175 members
Home / Discussions / WPF
   

WPF

 
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 
Questionhow to upload a silverlight website.???? Pin
mayankkothari17-Jan-09 17:02
mayankkothari17-Jan-09 17:02 
AnswerRe: how to upload a silverlight website.???? Pin
Michael Sync29-Jan-09 2:29
Michael Sync29-Jan-09 2:29 
QuestionStart silverlight based website Pin
sjs4u16-Jan-09 21:35
sjs4u16-Jan-09 21:35 
AnswerRe: Start silverlight based website Pin
Mohammad Dayyan19-Jan-09 17:53
Mohammad Dayyan19-Jan-09 17:53 
AnswerRe: Start silverlight based website Pin
Michael Sync29-Jan-09 2:31
Michael Sync29-Jan-09 2:31 
QuestionWhat kind of applications we can develop using WPF? Pin
ravi.vellanky15-Jan-09 23:17
ravi.vellanky15-Jan-09 23:17 
AnswerRe: What kind of applications we can develop using WPF? Pin
Pete O'Hanlon15-Jan-09 23:25
mvePete O'Hanlon15-Jan-09 23:25 
GeneralRe: What kind of applications we can develop using WPF? Pin
ravi.vellanky19-Jan-09 1:13
ravi.vellanky19-Jan-09 1:13 
AnswerRe: What kind of applications we can develop using WPF? Pin
Jani Giannoudis16-Jan-09 4:13
Jani Giannoudis16-Jan-09 4:13 

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.