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 7510191
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T23:09:19+00:00 2026-05-29T23:09:19+00:00

I work with the MAF in WPF and I have problems with the UI

  • 0

I work with the MAF in WPF and I have problems with the UI threads. I would like that each AddIn that I activate become a unique UI thread.

Why do I want that you probably wondering? I try to explain 🙂

I have a host application which is a container for addins. Different people developing addins for the host. If a developer start a long procedure in their addin and they forget to Invoke or start the procedure in a thread, the host will freeze because the host and the addins share the same UI thread.

Every addin run in a seperatly appdomain. About every hint I would be happy.

  • 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-05-29T23:09:21+00:00Added an answer on May 29, 2026 at 11:09 pm

    you could try the following approach:

    Thread thread = new Thread(() =>
    {
     Window1 w = new Window1();
     w.Show();
    
     //make sure to stop the Dispatcher when window is closed
     w.Closed += (s, e) => w.Dispatcher.InvokeShutdown();
     //start the message pump
     System.Windows.Threading.Dispatcher.Run();
    });
    
    thread.SetApartmentState(ApartmentState.STA);
    thread.Start();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like create a very simple Paint application using MAF on WPF. The
Work on asp.net vs05. I have three type of value Like:IsDesign,IsPrinting,IsInstall they are bit
At work, we have multiple branches that we may be working on at any
At work, we are developing an PHP application that would be later re-programmed into
I use MAF and I have a problem with activating the addin. Let me
I have a text file like below iv_destination_code_10 TAP310_mapping_RATERUSG_iv_destination_code_10 RATERUSG.iv_destination_code_10 = WORK.maf_feature_info[53,6] iv_destination_code_2 TAP310_mapping_RATERUSG_iv_destination_code_2
Work on Asp.Net C# VS08 I would like to assign a value to Session
At work, I have a large table (some 3 million rows, like 40-50 columns).
Work on this small test application to learn threading/locking. I have the following code,
For those that work with application extensibility in .NET, what do you prefer doing

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.