This solved my issue:
Windows.ApplicationModel.Core.CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(CoreDispatcherPriority.Normal,
() =>
{
// Your UI update code goes here!
}
);
Correct way to get the CoreDispatcher in a Windows Store app
More Related Contents:
- How to access a Control inside the data template in C# Metro UI in the code behind
- Error: Must create DependencySource on same Thread as the DependencyObject even by using Dispatcher
- WinRT apps and Regional settings. The correct way to format dates and numbers based on the user’s regional settings?
- Page Navigation using MVVM in Store App
- sender as in C# [duplicate]
- Is it possible to await an event instead of another async method?
- Why is Thread.Sleep so harmful
- Cross-thread operation not valid [duplicate]
- How to add a Blend Behavior in a Style Setter
- Concurrent HashSet in .NET Framework?
- BackgroundWorker RunWorkerCompleted Event
- How do I run a simple bit of code in a new thread?
- C#: Waiting for all threads to complete
- Bind to SelectedItems from DataGrid or ListBox in MVVM
- How to protect resources that may be used in a multi-threaded or async environment?
- Cancelling a pending task synchronously on the UI thread
- What is a thread exit code?
- Does using Tasks (TPL) library make an application multithreaded?
- databind the Source property of the WebBrowser in WPF
- Passing an enum value as command parameter from XAML
- Wait for a while without blocking main thread
- Progress Bar not available for zipfile? How to give feedback when program seems to hang
- WPF binding not updating the view
- Button in a column, getting the row from which it came on the Click event handler
- WPF checkbox binding
- ReaderWriterLock vs lock{}
- Is the List.ForEach() method gone?
- How to work threading with ConcurrentQueue
- MyUserControl cannot be the root of a XAML file because it was defined using XAML [duplicate]
- How to draw arc with radius and start and stop angle