コード例 #1
0
ファイル: MainPage.xaml.cs プロジェクト: Rustemt/Orientation
        private void List_OnItemTapped(object sender, ItemTappedEventArgs e)
        {
            Page nextPage = null;

            MovieQuote quote = e.Item as MovieQuote;

            if (quote == null)
            {
                return;
            }

            if (LayoutType == 0)
            {
                nextPage = new FluidLayoutPage(quote);
            }
            else if (LayoutType == 1)
            {
                nextPage = new ExtendedLayoutPage(quote);
            }
            else if (LayoutType == 2)
            {
                nextPage = new ComplimentaryLayoutPage(quote);
            }

            list.SelectedItem = null;

            Navigation.PushAsync(nextPage);
        }
コード例 #2
0
        private void List_OnItemTapped(object sender, ItemTappedEventArgs e)
        {
            Page nextPage = null;

              MovieQuote quote = e.Item as MovieQuote;
              if (quote == null)
            return;

              if (LayoutType == 0)
            nextPage = new FluidLayoutPage(quote);
              else if (LayoutType == 1)
            nextPage = new ExtendedLayoutPage(quote);
              else if (LayoutType == 2)
            nextPage = new ComplimentaryLayoutPage(quote);

              list.SelectedItem = null;

              Navigation.PushAsync(nextPage);
        }