Click here to Skip to main content
15,920,508 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
JimmyRopes11-Apr-15 18:45
professionalJimmyRopes11-Apr-15 18:45 
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 
David Ceder wrote:
How can I best separate this out in MVVM so there is no code in my view?


First off, you need to learn how interrupts work on an x86 architecture CPU. Once you've mastered that, you should learn about user mode threads (see here[^], I should get a 5 for this post just for that link).

Once you've mastered all that, you still need to figure out how to get the actual address in memory of you ViewModel -- a combination of fixed and P/Invoke should help.

Now you've got the pieces in place for writing a user thread monitor to check for changes in your ViewModel and call other functions to update when the data changes. Oops, I forgot to mention, you'll have to figure out how get the address of functions in the IL, and how to marshal back onto the main thread because the UI really shouldn't be updated on a worker thread.

Gads. So much work for something that would be so easy to do if the C# language designers had simply implemented property change events. D'Oh! | :doh:

Marc

GeneralRe: MVVM Best Practise Pin
Pete O'Hanlon11-Apr-15 19:38
mvePete O'Hanlon11-Apr-15 19:38 
GeneralTo break a myth PinPopular
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 

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.