Click here to Skip to main content
15,918,109 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: MVVM Best Practise Pin
Tom Deketelaere11-Apr-15 10:23
professionalTom Deketelaere11-Apr-15 10:23 
GeneralRe: MVVM Best Practise Pin
Mark_Wallace11-Apr-15 12:42
Mark_Wallace11-Apr-15 12:42 
GeneralRe: MVVM Best Practise Pin
OriginalGriff11-Apr-15 21:21
mveOriginalGriff11-Apr-15 21:21 
GeneralRe: MVVM Best Practise Pin
Daniel Pfeffer11-Apr-15 23:33
professionalDaniel Pfeffer11-Apr-15 23:33 
GeneralRe: MVVM Best Practise Pin
Mark_Wallace12-Apr-15 3:39
Mark_Wallace12-Apr-15 3:39 
GeneralRe: MVVM Best Practise Pin
Richard MacCutchan11-Apr-15 21:32
mveRichard MacCutchan11-Apr-15 21:32 
GeneralRe: MVVM Best Practise Pin
Marc Clifton11-Apr-15 16:17
mvaMarc Clifton11-Apr-15 16:17 
GeneralRe: MVVM Best Practise Pin
Pete O'Hanlon11-Apr-15 19:38
mvePete O'Hanlon11-Apr-15 19:38 
I assume you're asking how you can accomplish this without code-behind, rather than no code in your view at all. XAML is code.

What you're looking to do is to create a command in your ViewModel using one of the many ICommand implementations around, such as Josh Smith's RelayCommand. Once you have the command, you're going to need an EventToCommand implementation (there's one available in the System.Windows.Interactivity assembly) that you will bind the double-click on the ListView to your command.

GeneralTo break a myth Pin
Rage10-Apr-15 21:09
professionalRage10-Apr-15 21:09 
GeneralRe: To break a myth Pin
JimmyRopes10-Apr-15 21:34
professionalJimmyRopes10-Apr-15 21:34 
GeneralRe: To break a myth Pin
Jörgen Andersson11-Apr-15 6:08
professionalJörgen Andersson11-Apr-15 6:08 
GeneralRe: To break a myth Pin
JimmyRopes11-Apr-15 18:40
professionalJimmyRopes11-Apr-15 18:40 
GeneralRe: To break a myth Pin
User 5924110-Apr-15 22:42
User 5924110-Apr-15 22:42 
GeneralRe: To break a myth Pin
Mark_Wallace10-Apr-15 22:47
Mark_Wallace10-Apr-15 22:47 
GeneralRe: To break a myth Pin
OriginalGriff10-Apr-15 23:21
mveOriginalGriff10-Apr-15 23:21 
GeneralRe: To break a myth Pin
Mark_Wallace11-Apr-15 0:20
Mark_Wallace11-Apr-15 0:20 
GeneralRe: To break a myth Pin
OriginalGriff11-Apr-15 0:53
mveOriginalGriff11-Apr-15 0:53 
GeneralRe: To break a myth Pin
Mark_Wallace11-Apr-15 1:49
Mark_Wallace11-Apr-15 1:49 
GeneralRe: To break a myth Pin
OriginalGriff11-Apr-15 2:05
mveOriginalGriff11-Apr-15 2:05 
GeneralRe: To break a myth Pin
Mladen Janković11-Apr-15 10:56
Mladen Janković11-Apr-15 10:56 
GeneralRe: To break a myth Pin
Stefto12-Apr-15 20:37
professionalStefto12-Apr-15 20:37 
GeneralHOTD Pin
Mark_Wallace10-Apr-15 8:13
Mark_Wallace10-Apr-15 8:13 
GeneralRe: HOTD Pin
OriginalGriff10-Apr-15 8:42
mveOriginalGriff10-Apr-15 8:42 
GeneralRe: HOTD Pin
Mark_Wallace10-Apr-15 10:07
Mark_Wallace10-Apr-15 10:07 
GeneralRe: HOTD Pin
OriginalGriff10-Apr-15 10:33
mveOriginalGriff10-Apr-15 10:33 

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.