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

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: TWCP OTD - 6th of March, 2017 Pin
Mark_Wallace6-Mar-17 3:59
Mark_Wallace6-Mar-17 3:59 
GeneralRe: TWCP OTD - 6th of March, 2017 Pin
CDP18026-Mar-17 4:02
CDP18026-Mar-17 4:02 
GeneralRe: TWCP OTD - 6th of March, 2017 Pin
Mark_Wallace6-Mar-17 4:03
Mark_Wallace6-Mar-17 4:03 
GeneralRe: TWCP OTD - 6th of March, 2017 Pin
CDP18026-Mar-17 4:08
CDP18026-Mar-17 4:08 
GeneralRe: TWCP OTD - 6th of March, 2017 Pin
Mark_Wallace6-Mar-17 5:16
Mark_Wallace6-Mar-17 5:16 
GeneralRe: TWCP OTD - 6th of March, 2017 Pin
Amarnath S6-Mar-17 3:13
professionalAmarnath S6-Mar-17 3:13 
GeneralRe: TWCP OTD - 6th of March, 2017 Pin
Kornfeld Eliyahu Peter6-Mar-17 3:18
professionalKornfeld Eliyahu Peter6-Mar-17 3:18 
GeneralI learnt something valuable this weekend Pin
Cornelius Henning6-Mar-17 2:09
professionalCornelius Henning6-Mar-17 2:09 
I have been dabbling in MVVM projects for a while now, and showing dialogs from a ViewModel has always been something that perplexed me. Yes, I learnt to do it using properties attached to a View, but this seemed needlessly complicated. Then I came across this quote from Microsoft's guru on the Prism framework, Brian Lagunas. Discussing the showing of dialogs directly from a ViewModel, he said the following:
Quote:
// As long as you abstract away the actual implementation using an interface,
// you can show any dialog you want from a VM. – Brian Lagunas May 20 '16 at 12:32
// http://stackoverflow.com/questions/37301469/openfiledialog-using-prism-mvvm

Hey, that's just what I needed to know! Ok, it took me some time to figure out exactly how to use an interface as he suggested, but I got it working in the end. No more fiddling with attached properties and behaviors! Thanks Brian!
Get me coffee and no one gets hurt!

GeneralRe: I learnt something valuable this weekend Pin
Slacker0076-Mar-17 2:19
professionalSlacker0076-Mar-17 2:19 
GeneralRe: I learnt something valuable this weekend Pin
Cornelius Henning6-Mar-17 2:44
professionalCornelius Henning6-Mar-17 2:44 
GeneralRe: I learnt something valuable this weekend Pin
Slacker0076-Mar-17 3:13
professionalSlacker0076-Mar-17 3:13 
GeneralRe: I learnt something valuable this weekend Pin
Richard Deeming6-Mar-17 5:45
mveRichard Deeming6-Mar-17 5:45 
GeneralRe: I learnt something valuable this weekend Pin
Cornelius Henning6-Mar-17 6:00
professionalCornelius Henning6-Mar-17 6:00 
GeneralRe: I learnt something valuable this weekend Pin
CDP18026-Mar-17 2:57
CDP18026-Mar-17 2:57 
GeneralRe: I learnt something valuable this weekend Pin
Cornelius Henning6-Mar-17 3:09
professionalCornelius Henning6-Mar-17 3:09 
GeneralRe: I learnt something valuable this weekend Pin
Slacker0076-Mar-17 3:15
professionalSlacker0076-Mar-17 3:15 
GeneralRe: I learnt something valuable this weekend Pin
CDP18026-Mar-17 3:25
CDP18026-Mar-17 3:25 
GeneralRe: I learnt something valuable this weekend Pin
Slacker0076-Mar-17 3:30
professionalSlacker0076-Mar-17 3:30 
GeneralRe: I learnt something valuable this weekend Pin
CDP18026-Mar-17 3:36
CDP18026-Mar-17 3:36 
GeneralRe: I learnt something valuable this weekend Pin
Mike Hankey6-Mar-17 4:19
mveMike Hankey6-Mar-17 4:19 
GeneralRe: I learnt something valuable this weekend Pin
Cornelius Henning6-Mar-17 4:55
professionalCornelius Henning6-Mar-17 4:55 
GeneralRe: I learnt something valuable this weekend Pin
Mike Hankey6-Mar-17 5:06
mveMike Hankey6-Mar-17 5:06 
GeneralRe: I learnt something valuable this weekend Pin
Cornelius Henning6-Mar-17 5:12
professionalCornelius Henning6-Mar-17 5:12 
GeneralPony Programming Language Pin
Kevin McFarlane6-Mar-17 2:08
Kevin McFarlane6-Mar-17 2:08 
GeneralRe: Pony Programming Language Pin
Jacquers6-Mar-17 2:11
Jacquers6-Mar-17 2:11 

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.