Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8069055
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T12:53:30+00:00 2026-06-05T12:53:30+00:00

My problem is just the same as this link . I am working on

  • 0

My problem is just the same as this link.

I am working on the new WinRT for Metro Applications in C#(win8 release preview).
The problem is: My app My program runs a thread in the background which receives messages from the server(In fact, I ported a XMPP client app). Some information should be updated in the UI.

I have tried that link. The second method seems would work for me, but I has found there is no Dispatcher.Invoke(…) in the VS2012RC intellisense which means there is no this extension method.

After searching carefully, I think maybe this link can help me. But I have no idea how to start with my application in this scenario (since I am a beginner in C#).

Can you give me some advice? I would appreciate if you show some code snippet that would help me so much.
Thanks a lot.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T12:53:33+00:00Added an answer on June 5, 2026 at 12:53 pm

    Somewhere in your UI thread run :

    CoreDispatcher dispatcher = Windows.UI.CoreWindow.GetForCurrentThread().Dispatcher;
    

    Then from your background thread call the RunAsync function in the dispatcher variable you just created.

    dispatcher.RunAsync(DispatcherPriority.Normal, <delegate to run on UI thread>);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Seems like just yesterday I had this same problem with Play! v1. After trying
Ok, so I'm quite new to jQuery, but found this bizzare problem just now,
I know there's a lot of posts with the same that problem. I just
I have the problem I just installed the new Monodevelop 2.2.2 on Windows but
I have tried troubleshooting this problem and just ended up with nothing, I hope
I've been at this for hours but it just isn't working. I'm trying to
I have this problem with a link in an HTML page where the first
I've been working on a doodling app recently just for kicks. After trying many
i have a problem just as title, and the http-status is 302 Moved Temporarily.
Edit: I fixed the problem by just starting from scratch. Sorry to waste y'alls

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.