private async void UninstallButton_Click(object sender, RoutedEventArgs e)
{
MessageDialog msg = new MessageDialog("Do you want to uninstall the " + appHolding.Name + " ?", "Uninstall");
msg.Commands.Add(new UICommand("Yes"));
msg.Commands.Add(new UICommand("No"));
msg.DefaultCommandIndex = 1;
msg.CancelCommandIndex = 0;
var result = await msg.ShowAsync();
if (result.Label.Equals("Yes"))
{
var localSettings = Windows.Storage.ApplicationData.Current.LocalSettings;
localSettings.Values[appHolding.Name] = false;
AppList.getMyAppList().myappList.Remove(appHolding);
if (AppList.getMyAppList().myappList.Count == 0) Frame.GoBack();
GridMyApps.ItemsSource=(new List<Apps>());
GridMyApps.ItemsSource = AppList.getMyAppList().myappList;
}
}