CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2010
    Posts
    3

    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

  2. #2
    Arjay's Avatar
    Arjay is online now Moderator / MS MVP Power Poster Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+)
    Join Date
    Aug 2004
    Posts
    10,340

    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 );
    }

  3. #3
    Join Date
    Aug 2010
    Posts
    3

    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

  4. #4
    Arjay's Avatar
    Arjay is online now Moderator / MS MVP Power Poster Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+)
    Join Date
    Aug 2004
    Posts
    10,340

    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.

  5. #5
    Join Date
    Aug 2010
    Posts
    3

    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

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts



HTML5 Development Center

Click Here to Expand Forum to Full Width