0

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.

  • There are 3 ways a live tile can be customized. The text, a count in the top right or by changing the background image. Is the third what you want? – cjds Jan 16 '13 at 00:59

1 Answers1

1

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.

Community
  • 1
  • 1
Soonts
  • 20,079
  • 9
  • 57
  • 130