create tile data in background agent wp7

381 views Asked by At

What's a good way to create the bitmap needed to update a live tile in a background agent? In the UI thread, you use writeableBitmap class, but this does not work in the non-ui thread. There are many examples of tiles in background agent, but they all use bitmaps formerly created in the UI. Any ideas? Thanks.

1

There are 1 answers

1
Soonts On

this does not work in the non-ui thread

WriteableBitmap doesn't need UI, it merely needs a Dispatcher. Background agents have it.

See this answer for sample.