Reputation: 41
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.
Upvotes: 0
Views: 381
Reputation: 21936
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.
Upvotes: 1