Labels (instances of the LightTextBlock control) remain on the render surface after the ItemsSource is replaced dynamically and the row or column count is changed. As a workaround, the control can be redrawn manually to clear the surface:
var temp = heatmapTest.Template;
heatmapTest.Template = null;
heatmapTest.Template = temp;