Click here to Skip to main content
15,900,108 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys,

I've been having a major problem with drag-gable thumbs and MVVM architecture. I'm currently an editor of a emulator for a 32-bit PIC based development board. Effectively this allows all those who can program in C# to interface with the outside world i.e. motors lights and even Ethernet controllers etc.

The source is available here:

http://netduinoemulator.codeplex.com/SourceControl/list/changesets[^]

You will have to set NetduinoEmulator as the start up project to debug.

The Principle


Based on .Net Micro framework we have a list of available components that can be simulated, these can be attached or configured to operate of an output port of the device. Now these devices are held within an adorner and placed on a canvas within a listbox. They are generated as a custom thumb who's properties are set up in a sub folder "Controls".
Each one has an OnDragDelta Event set up and an X Y coordinate to record it's current position.

The devices are all held within a sub folder "Devices" and have the same MVVM architecture.

The Problem


I seem to have lost the OnDragDelta call in my code and it's no longer called and as much as I try I can't find were it's missing mainly due to the adorner making life difficult.

When this OnDragDelta event is set up to fire properly as we did have it running previously it simply proves impossible to change the position the thumb any way I try.

Now I've goggled for a solution for this problem and I've come up blank and failed each time for each type of solution I've found. I've been trying to solve this for 3 months now and I really need some expert help.

Any help you can provide will be gratefully appreciated
Many Many Thanks
Chris
Posted

1 solution

repackage your solution properly with dependent projects - and i'll look at it again.

oh - and remove the virus while u at it
 
Share this answer
 
Comments
C_Johnson 25-Nov-10 12:33pm    
Hi, thanks I will do.

Would you mind telling me what virus checking program your running as neither Sophos, AVG or Norton can find this virus and I am deeply concerned. Could you also provide is possible the file this virus is associated with.

Many Thanks Chris

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900