0
내 응용 프로그램에서 보조 타일로 작업하고 있습니다.하지만 보조 타일에서 내 응용 프로그램을 시작할 때 불행하게도 시작 화면이 열립니다. 검색을해야하고 편집해야한다는 것을 알고 있습니다. 내 App.cs tileActivationArguments 잡을 필요가 있지만 올바르게 수행하는 방법을 모른다. 제발 도와주세요 감사합니다. Windows 8 보조 타일 탐색 C#
여기에 내가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;
}
를 고정하는 데 사용하는 내 코드의이 내 App.cs 코드
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));
}
코드가 정확합니다.'args.Arguments'에 문제가있을 것이라고 생각합니다. 잘못된 인수로 인해 'if'조건이 충족되지 않을 수 있습니다. – Xyroid
감사합니다 @ Xyroid 나는 내 문제를 해결했습니다. –
Welcome :) 답변으로 내 의견을 게시 오전, 대답으로 받아 들여 & 그것을 upvote. – Xyroid