triggering messages to a MSMQ from WPF animations
Hi I would like to design a system interface where I have different controls(rectangles) animated(light up or glow) one by one and send a message to a Queue as they animate - I am new to c# and wpf so not quite sure how to appoach this - any starting points?
Thanks,
Richard
Re: triggering messages to a MSMQ from WPF animations
Read up on Josh Smith's excellent article WPF Apps With The Model-View-ViewModel Pattern.
Then in the model, just send a message to the queue with something like.
Code:
using( var mq = new MessageQueue( queuePath ) )
{
mq.Send( objectToSend );
}
Re: triggering messages to a MSMQ from WPF animations
sorry, you spoke too fast for me - am not very familiar with these technologies! Am trying to read the article but can't see a starting point.
sorry
Re: triggering messages to a MSMQ from WPF animations
The link I gave you is the recommended approach for WPF application design.
Essentially it's a 3 tier architecture as applied to a WPF application. There's the View, ViewModel, and Model layers.
You define the types of data you want to handle in the model, define how the data is viewed in the view, and connect the two with the viewmodel.
If this sounds too difficult, then I suggest searching bing or google for WPF tutorials and start with those.
Re: triggering messages to a MSMQ from WPF animations
Thanks for the tip - I am now watching the video by Jason Dolinger - hopefully that should help me get started. Looks like i still have a lot of learning to do with little time!
regards,
Richard