public void OnLaunched(Windows.ApplicationModel.Activation.LaunchActivatedEventArgs e)
 {
     var a = Dispatcher.RunIdleAsync((o) =>
     {
         ToggleAppBarButton(!SecondaryTileManager.TileExists(appbarTileId));
     });
 }
        private async void pinToStart_Click(object sender, RoutedEventArgs e)
        {
            if (SecondaryTileManager.TileExists(appbarTileId))
            {
                ToggleAppBarButton(await SecondaryTileManager.UnpinSecondaryTile(appbarTileId));
            }
            else
            {
                // Prepare package images for all four tile sizes in our tile to be pinned as well as for the square30x30 logo used in the Apps view.
                Uri square150x150Logo = new Uri("ms-appx:///Assets/Square150x150Logo.scale-240.png");

                SecondaryTileManager.PinSecondaryTile(appbarTileId, "Modern Music", square150x150Logo, showName: true);
            }
        }