punker76 / MahApps.Metro.SimpleChildWindow

A simple child window for MahApps.Metro
MIT License
374 stars 55 forks source link

Simple Child Window :The calling thread must be STA. #88

Closed Raghava56 closed 5 years ago

Raghava56 commented 5 years ago

Hi,

am trying to open a simple child window in Non-UI thread. Getting exception i.e exception has been thrown by the target of an invocation
InnerException is The calling thread must be STA, because many UI components require this.

I tried with Dispatcher

Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.Send, new System.Action(async () =>
 {
await this.DialogManager.ShowModalPopup(SomeViewModel, this);;
});

still simple child window not rendering. i checked output window in VS and Diagnostic tools no issues found.

Thanks in Advance, Raghava

punker76 commented 5 years ago

@Raghava56 Do you have a short sample which shows this issue?

punker76 commented 5 years ago

I’m closing this issue because it has been inactive for a few months. This probably means that it is not reproducible or it has been fixed in a newer version. If it’s an enhancement and hasn’t been taken on for so long, then it seems no one has the time to implement this.

Please reopen if you still encounter this issue with the latest stable or pre-release version and please use the issue template.

Thank you! 🙏

Raghava56 commented 5 years ago

Hi Punker, First of all, Thank you. am not able to reproduce this one, If I reproduce then will surely send the sample one.

Thanks, Raghava.

On Thu, Sep 12, 2019 at 5:09 PM Jan Karger ツ ☀ notifications@github.com wrote:

Closed #88 https://github.com/punker76/MahApps.Metro.SimpleChildWindow/issues/88.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/punker76/MahApps.Metro.SimpleChildWindow/issues/88?email_source=notifications&email_token=AGAB7FEMW2AWLKDNKBZGHFDQJIS7VA5CNFSM4HRFPLA2YY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOTSYQUAQ#event-2628848130, or mute the thread https://github.com/notifications/unsubscribe-auth/AGAB7FARHX76UQDLPAZ6A6LQJIS7VANCNFSM4HRFPLAQ .