I am doing time-consuming operations are executed on the Main Thread on WP7. Normally this case the user interface can stop responding to user input & it won’t update bindings.
So that I have used backgroundWorker for Update UI. Its update UI. In my project, user control have gif animated image for loading condition. In this case the animated image not playing. It look like normal .jpg or png Image. But it have animation. Normaly playing in my project with different condition.
var bw = new BackgroundWorker();
bw.WorkerReportsProgress = true;
bw.DoWork += (s, a) =>
{
Dispatch(ImageFill);
};
bw.RunWorkerCompleted += (s, a) =>
{
PopOpen = false;
};
PopOpen = true;
bw.RunWorkerAsync();
//dispatch function
private void Dispatch(object ImageFill)
{
PersistentData.AppDispatcher.BeginInvoke(() =>
{
Point p1 = new Point();
Image imgDraw = new Image();
............ //functionality
}
}
I don't know how to handle that. Pls anyone known help me.
Actually Wp7 doesn’t support the GIF format image.
For Animation in Wp7 you can refer this link(spl for splash screen).