ookii-dialogs / ookii-dialogs-wpf

Awesome dialogs for Windows Desktop applications built with Microsoft .NET (WPF)
BSD 3-Clause "New" or "Revised" License
1.14k stars 85 forks source link

ProgressDialog cannot update main UI thread #142

Open MrBisquit opened 1 year ago

MrBisquit commented 1 year ago

I'm trying to use the ProgressDialog to show what it's doing without stressing out the UI thread but it does not appear to be updating the UI thread when I use Dispatcher.Invoke(() => { Items.Add(networkItem); Data.ItemsSource = Items; }, System.Windows.Threading.DispatcherPriority.Render); or Application.Current.Dispatcher.Invoke(() => { Items.Add(networkItem); Data.ItemsSource = Items; }); I do not know if this is because of this NuGet package or not.

augustoproiete commented 1 year ago

@MrBisquit Can you put together a reproducible example on a repo?

MrBisquit commented 1 year ago

@MrBisquit Can you put together a reproducible example on a repo?

I will upload it shortly, I will give you the link once done.

MrBisquit commented 1 year ago

@augustoproiete https://github.com/MrBisquit/NetworkScanner