This question is locked. New answers and comments are not allowed.
Hello!
How can I update the secondary tiles from my background thread?
My code is based on the example provided for the LiveTileHelper.
Im trying to use the UserControls that defines the look of the tile. FrontLiveTile and BackLiveTile.
As soon as I try to set any data in the usercontrol I get system.NullreferenceException. If i donĀ“t get any error...
How can I update the secondary tiles from my background thread?
My code is based on the example provided for the LiveTileHelper.
Im trying to use the UserControls that defines the look of the tile. FrontLiveTile and BackLiveTile.
As soon as I try to set any data in the usercontrol I get system.NullreferenceException. If i donĀ“t get any error...
Deployment.Current.Dispatcher.BeginInvoke( () => { RadExtendedTileData extendedData = new RadExtendedTileData(); FrontLiveTile frontTile = new FrontLiveTile(); BackLiveTile backTile = new BackLiveTile(); frontTile.SetCityName(sensorName); extendedData.Title = DateTime.Now.ToString(); extendedData.Count = 1; extendedData.VisualElement = frontTile; Uri tileUri = new Uri("/SensorInformation.xaml?id=" + SensorID + "", UriKind.RelativeOrAbsolute); ShellTile tile = Telerik.Windows.Controls.LiveTileHelper.GetTile(tileUri); if (tile != null) { LiveTileHelper.UpdateTile(tile, extendedData); } });