Note that there are some explanatory texts on larger screens.

plurals
  1. POWindows 8 secondary tile navigation c#
    primarykey
    data
    text
    <p>i'm working with secondary tiles in my app all works fine but unfortunatly when i start my application from the secondary tile it opens the start screen , i have searched and i know that i have to edit my App.cs need to catch the tileActivationArguments but i don't know how to do it correctly. please i need your help thanks.</p> <p>Here's my code that i use to pin </p> <pre><code>private async void btnpin_Click_1(object sender, RoutedEventArgs e) { //mantenmos abierta el appbar this.miappbar.IsSticky = true; //obtenemos la imagen del .json y la mostramos en la nota Uri logo = new Uri(pequeniaImagen); Uri smalllogo = new Uri(pequeniaImagen); //creamos el secondary tile SecondaryTile secondary = new SecondaryTile(logoSecondaryTileld, String.Format("{0} {1:d}",pageTitle.Text,Convert.ToDateTime(tvFecha.Text)),pageTitle.Text,logoSecondaryTileld, TileOptions.ShowNameOnLogo,logo); secondary.DisplayName =pageTitle.Text;//nombre de la nota //obtenemos el color de fondo del secondary tile SolidColorBrush brush= Editor.returnColorfromString(Mcolor); secondary.BackgroundColor = brush.Color; //color del texto secondary.ForegroundText = ForegroundText.Dark; bool isPinned = await secondary.RequestCreateForSelectionAsync(detalles.GetElementRect((FrameworkElement)sender), Windows.UI.Popups.Placement.Below); //el usuario pinieo la nota if (isPinned) { //ocultamos el btn pin btnpin.Visibility = Visibility.Collapsed; //mostramos el btn unpin btnunpin.Visibility = Visibility.Visible; } this.miappbar.IsSticky = false; } </code></pre> <p>and this is my App.cs code</p> <pre><code>if (rootFrame.Content == null) { if (!String.IsNullOrEmpty(args.Arguments)) rootFrame.Navigate(typeof(detalles), args.Arguments); else rootFrame.Navigate(typeof(GroupedItemsPage)); } else { if (!String.IsNullOrEmpty(args.Arguments)) rootFrame.Navigate(typeof(detalles), args.Arguments); else rootFrame.Navigate(typeof(GroupedItemsPage)); } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload