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.

1
  • 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, 2013 at 0:59

1 Answer 1

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.

1
  • Very slick solution. Thanks. Jan 17, 2013 at 0:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.