private void radioUseDynamic_Checked(object sender, RoutedEventArgs e)
{
String herName = MiscTool.GetHerName();
String herIcon = MiscTool.GetHerIconUrl();
Uri herUri;
if (string.IsNullOrEmpty(herIcon))
{
herUri = new Uri("/Images/Thumb/CheekyTransparent.png", UriKind.Relative);
}
else
{
herUri = new Uri(herIcon, UriKind.Absolute);
}
ShellTile TileToFind = ShellTile.ActiveTiles.First();
// Application should always be found
if (TileToFind != null)
{
StandardTileData NewTileData = new StandardTileData
{
Title = "我只在乎你",
BackgroundImage = new Uri("/Images/Thumb/HeartTransparent.png", UriKind.Relative),
Count = 0,
BackTitle = herName,
BackBackgroundImage = herUri,
BackContent = ""
};
// Update the Application Tile
TileToFind.Update(NewTileData);
PreferenceHelper.SetPreference("Global_TileMode", "0");
}
}