Try something like this
public static void DoEvents()
{
Application.Current.Dispatcher.Invoke(DispatcherPriority.Background,
new Action(delegate { }));
}
More Related Contents:
- How to bind an enum to a combobox control in WPF?
- WPF Application that only has a tray icon
- Bind TextBox on Enter-key press
- Passing an enum value as command parameter from XAML
- Single click edit in WPF DataGrid
- the name does not exist in the namespace clr-namespace
- DataGrid column width doesn’t auto-update
- WPF: The name does not exist in the namespace [duplicate]
- How to sort TreeView items using SortDescriptions in Xaml?
- Error: Must create DependencySource on same Thread as the DependencyObject even by using Dispatcher
- Loading XAML XML through runtime?
- Accessing static fields in XAML
- How do I keep aspect ratio on scalable, scrollable content in WPF?
- How to refer to Embedded Resources from XAML?
- Having HierarchicalDataTemplates in a TreeView
- Could not load file or assembly ‘System.Windows.Interactivity’ [duplicate]
- Storyboards can’t find ControlTemplate elements
- Dynamically loading resource dictionary files to a wpf application gives an error
- Sort a wpf datagrid programmatically
- XAML binding not working on dependency property?
- This type of CollectionView does not support changes to its SourceCollection from a thread different from the Dispatcher thread [duplicate]
- Example using Hyperlink in WPF
- The calling thread cannot access this object because a different thread owns it.WPF [duplicate]
- How to take a screenshot of a WPF control?
- Bind datagrid column visibility MVVM
- Create Key binding in WPF
- OneWayToSource Binding seems broken in .NET 4.0
- Should I bind to ICollectionView or ObservableCollection
- Mutually exclusive checkable menu items?
- Binding Commands to Events?