Where can I get the code for

1) TileHelper class

2) Rendering xaml to png

I tried looking from them in the 4 samples you listed but did not find either one of them.