Use:
System.Windows.Application.Current.Dispatcher.Invoke(
System.Windows.Threading.DispatcherPriority.Normal,
(Action)delegate()
{
// Your Action Code
});
More Related Contents:
- Making sure OnPropertyChanged() is called on UI thread in MVVM WPF app
- “The calling thread must be STA, because many UI components require this” error when creating a WPF pop-up Window in thread
- Using SynchronizationContext for sending events back to the UI for WinForms or WPF
- Can/Does WPF have multiple GUI threads?
- DispatcherTimer vs a regular Timer in WPF app for a task scheduler
- How to prevent a new WPF form from stealing focus?
- In WPF, what are the differences between the x:Name and Name attributes?
- When creating a new GUI, is WPF the preferred choice over Windows Forms? [closed]
- Best way to hide a window from the Alt-Tab program switcher?
- My images are blurry! Why isn’t WPF’s SnapsToDevicePixels working?
- Apply stroke to a textblock in WPF
- Double-checked locking in .NET
- Making WPF applications look Metro-styled, even in Windows 7? (Window Chrome / Theming / Theme)
- There is no ListBox.SelectionMode=”None”, is there another way to disable selection in a listbox?
- In MVVM model should the model implement INotifyPropertyChanged interface?
- Simple description of worker and I/O threads in .NET
- Replacing the WPF entry point
- WPF Handedness with Popups
- How can I read/write app.config settings at runtime without using user settings?
- How to set and change the culture in WPF
- Custom MVVM implementation Vs. PRISM
- Lazy loading WPF tab content
- Going fullscreen on secondary monitor
- DataTrigger not firing
- Binding in a WPF data grid text column
- Drawing Pixels in WPF
- Is it possible to observe a partially-constructed object from another thread?
- Does Console.WriteLine block?
- WPF slow to start on x64 in .NET Framework 4.0
- WPF, ‘Object reference not set to an instance of an object’ in Designer