Use of Tile Toolkit with MVVM ( light )

Dec 23, 2011 at 2:03 PM

A note for the MVVM users.

When accessing the framework to create a new tile, be sure to launch it on the UI thread! It seems that image creation needs to be done on the UI thread.

So if you create a method CreateCustomTile() with all the needed code, be sure to wrap it inside following code ( for MVVM Light ):

GalaSoft.MvvmLight.Threading.DispatcherHelper.BeginInvoke( () => { this.CreateCustomTile(); });