Here is my code
Action<object> action = (object obj) =>// update currency
{
prLoading.Visibility = Visibility.Collapsed;
};
Task ct = new Task(action, "UpdateData");
ct.Start();
The prLoading is a ProgressRing, when I debug the code it's always popup error: "The application called an interface that was marshalled for a different thread." in line "prLoading.Visibility = Visibility.Collapsed;"
It seems it's not allowed to operate in different thread.
Is there any other way to solve this issue, I just want when app updating data, the ProgressRing could be appear.
Thanks