NETMF / netmf-interpreter

.NET Micro Framework Interpreter
http://netmf.github.io/netmf-interpreter/
Other
487 stars 223 forks source link

Post A routedEvent to the system from managed code #383

Open SytechDesigns opened 8 years ago

SytechDesigns commented 8 years ago

Not really a porting issue, but I don't know where else to post this! We are working on a managed capacitive touch screen driver - when we have our touch data we want to pass it into the clr as if it came from the Pal touch driver, so it can be used by WPF components. To do this we need to post the relevant RoutedEvent. Whereas it s easy to create the correct routedEvent type - I cant work out how to publish the event! I am guessing we need to go thru the dispatcher - does anyone know how to publish routedEvents from managed code to the IEventListeners in the UIControls will see them? Thanks in advance -

SytechDesigns commented 8 years ago

We have sorted this out now - mechanism is based on the GPIOInputProvider and uses input reports, the InputManager and the TouchDevice. However this does highlight a need for more (some) Architectural documentation on the system and how the various elements work.