Click here to Skip to main content
15,895,557 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: Close unneeded (cr)apps to prevent data loss Pin
Mark_Wallace5-Apr-17 7:53
Mark_Wallace5-Apr-17 7:53 
GeneralRe: Close unneeded (cr)apps to prevent data loss Pin
ZurdoDev5-Apr-17 7:59
professionalZurdoDev5-Apr-17 7:59 
GeneralRe: Close unneeded (cr)apps to prevent data loss Pin
Mark_Wallace5-Apr-17 11:33
Mark_Wallace5-Apr-17 11:33 
GeneralBlend: The positive side of the (complicated) coin. Pin
Cornelius Henning4-Apr-17 12:48
professionalCornelius Henning4-Apr-17 12:48 
GeneralRe: Blend: The positive side of the (complicated) coin. Pin
Marc Clifton4-Apr-17 15:05
mvaMarc Clifton4-Apr-17 15:05 
GeneralRe: Blend: The positive side of the (complicated) coin. Pin
dan!sh 4-Apr-17 19:11
professional dan!sh 4-Apr-17 19:11 
GeneralRe: Blend: The positive side of the (complicated) coin. Pin
Pete O'Hanlon4-Apr-17 21:42
mvePete O'Hanlon4-Apr-17 21:42 
GeneralRe: Blend: The positive side of the (complicated) coin. Pin
Cornelius Henning5-Apr-17 0:47
professionalCornelius Henning5-Apr-17 0:47 
You may be thinking about two possibilities:

a) Traditional event handlers use tight coupling. Something you want to avoid in MVVM. To avoid this, I use a weak event manager inside the behavior, like so:
WeakEventManager<TextBox, RoutedEventArgs>.AddHandler(this.AssociatedObject, "Loaded", setFocus);

b) These behaviors get passed UI elements. In the example above it gets passed a TextBox. This may never happen if the behavior is part of a ViewModel, but I believe it is OK, because the behavior is part of the View, not the ViewModel.

Did you have one of these issues in mind?
Get me coffee and no one gets hurt!

GeneralRe: Blend: The positive side of the (complicated) coin. Pin
Pete O'Hanlon5-Apr-17 0:59
mvePete O'Hanlon5-Apr-17 0:59 
GeneralRe: Blend: The positive side of the (complicated) coin. Pin
Cornelius Henning5-Apr-17 4:16
professionalCornelius Henning5-Apr-17 4:16 
GeneralRe: Blend: The positive side of the (complicated) coin. Pin
Pete O'Hanlon5-Apr-17 5:07
mvePete O'Hanlon5-Apr-17 5:07 
GeneralRe: Blend: The positive side of the (complicated) coin. Pin
Cornelius Henning5-Apr-17 5:19
professionalCornelius Henning5-Apr-17 5:19 
GeneralRe: Blend: The positive side of the (complicated) coin. Pin
Cornelius Henning6-Apr-17 5:06
professionalCornelius Henning6-Apr-17 5:06 
GeneralRe: Blend: The positive side of the (complicated) coin. Pin
Pete O'Hanlon6-Apr-17 5:29
mvePete O'Hanlon6-Apr-17 5:29 
GeneralRe: Blend: The positive side of the (complicated) coin. Pin
Cornelius Henning6-Apr-17 6:38
professionalCornelius Henning6-Apr-17 6:38 
GeneralWhy Blend Sucks Today Pin
Kevin Marois4-Apr-17 10:27
professionalKevin Marois4-Apr-17 10:27 
GeneralRe: Why Blend Sucks Today Pin
Mark_Wallace4-Apr-17 10:36
Mark_Wallace4-Apr-17 10:36 
GeneralRe: Why Blend Sucks Today Pin
Pete O'Hanlon4-Apr-17 10:38
mvePete O'Hanlon4-Apr-17 10:38 
GeneralRe: Why Blend Sucks Today Pin
Kevin Marois4-Apr-17 10:41
professionalKevin Marois4-Apr-17 10:41 
GeneralRe: Why Blend Sucks Today Pin
Pete O'Hanlon4-Apr-17 11:21
mvePete O'Hanlon4-Apr-17 11:21 
GeneralRe: Why Blend Sucks Today Pin
  Forogar  5-Apr-17 4:13
professional  Forogar  5-Apr-17 4:13 
GeneralRe: Why Blend Sucks Today Pin
OriginalGriff4-Apr-17 10:38
mveOriginalGriff4-Apr-17 10:38 
GeneralPettiness in IT Pin
Chris Maunder4-Apr-17 8:26
cofounderChris Maunder4-Apr-17 8:26 
GeneralRe: Pettiness in IT Pin
Nish Nishant4-Apr-17 8:28
sitebuilderNish Nishant4-Apr-17 8:28 
GeneralRe: Pettiness in IT Pin
Slacker0074-Apr-17 9:49
professionalSlacker0074-Apr-17 9:49 

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.