当前位置: 首页>>代码示例>>C#>>正文


C# PhoneApplicationPage.NavigateTo方法代码示例

本文整理汇总了C#中PhoneApplicationPage.NavigateTo方法的典型用法代码示例。如果您正苦于以下问题:C# PhoneApplicationPage.NavigateTo方法的具体用法?C# PhoneApplicationPage.NavigateTo怎么用?C# PhoneApplicationPage.NavigateTo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PhoneApplicationPage的用法示例。


在下文中一共展示了PhoneApplicationPage.NavigateTo方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Go

        public static void Go(PhoneApplicationPage fromPage, Category category)
        {
            SelectionHandler = new PageActionHandler<Category>();
            SelectionHandler.AfterSelected = delegate(Category item)
            {
                if ((item != null) && (item.Id != category.ParentCategoryId))
                {
                    if (category.ParentCategory != null)
                    {
                        category.ParentCategory.Childrens.Remove(category);
                    }

                    category.ParentCategory = item;
                    if (item.Childrens.Count(p => p.Name == category.Name) == 0)
                    {
                        // reset order.
                        category.Order = item.Childrens
                            .Select(p => (int)p.Order).ToList().Max(p => p) + 1;

                        item.Childrens.Add(category);
                    }

                    ((System.Collections.Generic.IEnumerable<AccountItem>)category.AccountItems).ForEach<AccountItem>(p =>
                    {
                        p.RaisePropertyChangd("NameInfo");
                    });
                    ViewModelLocator.CategoryViewModel.Update(category);
                }
            };
            fromPage.NavigateTo("/pages/CategoryManager/SelectParentCategoryPage.xaml?id={0}&currentName={1}&type={2}&childName={3}", new object[] { category.ParentCategoryId, category.ParentCategory == null ? "N/A" : category.ParentCategory.Name, category.CategoryType, category.Name });
        }
开发者ID:RukaiYu,项目名称:TinyMoneyManager.WP8,代码行数:31,代码来源:SelectParentCategoryPage.xaml.cs

示例2: Go

 public static void Go(PhoneApplicationPage fromPage, Category category)
 {
     SelectionHandler = new PageActionHandler<Category>();
     SelectionHandler.AfterSelected = delegate(Category item)
     {
         if ((item != null) && (item.Id != category.ParentCategoryId))
         {
             category.ParentCategory.Childrens.Remove(category);
             category.ParentCategory = item;
             if (!item.Childrens.Contains(category))
             {
                 item.Childrens.Add(category);
             }
             ((System.Collections.Generic.IEnumerable<AccountItem>)category.AccountItems).ForEach<AccountItem>(delegate(AccountItem p)
             {
                 p.RaisePropertyChangd("NameInfo");
             });
             ViewModelLocator.CategoryViewModel.Update(category);
         }
     };
     fromPage.NavigateTo("/pages/CategoryManager/SelectParentCategoryPage.xaml?id={0}&currentName={1}&type={2}&childName={3}", new object[] { category.ParentCategoryId, category.ParentCategory.Name, category.CategoryType, category.Name });
 }
开发者ID:RukaiYu,项目名称:TinyMoneyManager.WP8,代码行数:22,代码来源:SelectParentCategoryPage.xaml.cs

示例3: Go

 public static void Go(PhoneApplicationPage fromPage, Guid id, PageActionType action)
 {
     fromPage.NavigateTo("/Pages/NotificationCenter/NotificationEditor.xaml?id={0}&action={1}", id, action);
 }
开发者ID:RukaiYu,项目名称:TinyMoneyManager.WP8,代码行数:4,代码来源:NotificationEditor.xaml.cs

示例4: Go

 public static void Go(PhoneApplicationPage fromPage, PageActionHandler<Category> categorySelectorHandler, ItemType categoryType, bool selectionMode = false)
 {
     SelectionModeHandler = categorySelectorHandler;
     fromPage.NavigateTo("/Pages/CategoryManager/CategoryManagment.xaml?type={0}&selectionMode={1}", new object[] { categoryType, selectionMode });
 }
开发者ID:RukaiYu,项目名称:TinyMoneyManager.WP8,代码行数:5,代码来源:CategoryManagment.xaml.cs

示例5: Go

 public static void Go(System.Guid attachedId, PhoneApplicationPage fromPage)
 {
     fromPage.NavigateTo("/pages/AccountItemViews/AttachPeoplePage.xaml?id={0}", new object[] { attachedId });
 }
开发者ID:RukaiYu,项目名称:TinyMoneyManager.WP8,代码行数:4,代码来源:AttachPeoplePage.xaml.cs

示例6: Go

 public static void Go(PhoneApplicationPage fromPage, Category category, ItemType categoryType, PageActionType pageAction = PageActionType.Add)
 {
     System.Guid guid = (category == null) ? System.Guid.Empty : category.Id;
     fromPage.NavigateTo("/Pages/CategoryManager/CategoryInfoEditor.xaml?id={0}&pageAction={1}&CategoryClassType={2}", new object[] { guid, pageAction, categoryType });
 }
开发者ID:RukaiYu,项目名称:TinyMoneyManager.WP8,代码行数:5,代码来源:CategoryInfoEditor.xaml.cs

示例7: Show

        /// <summary>
        /// Shows the specified item.
        /// </summary>
        /// <param name="item">The item.</param>
        /// <param name="SearchingCondition">The searching condition.</param>
        /// <param name="pageFrom">The page from.</param>
        public static void Show(SummaryDetails item, DetailsCondition SearchingCondition, PhoneApplicationPage pageFrom)
        {
            var queryForSeeMore = QueryDataBySearchingCondition(SearchingCondition);

            var summaryItem = item.Tag as AccountItem;

            Guid categoryID = summaryItem.CategoryId;

            Account account = summaryItem.Account;

            if (SearchingCondition.ChartGroupMode == ChartGroupMode.ByCategoryName)
            {
                if (SearchingCondition.GroupCategoryMode == CategorySortType.ByParentCategory)
                {
                    IEnumerable<Guid> ids = null;

                    if (summaryItem.Category.IsParent)
                    {
                        categoryID = summaryItem.Category.Id;
                        ids = ViewModelLocator.CategoryViewModel.AccountBookDataContext.Categories.Where(p => p.ParentCategoryId == categoryID)
                        .Select(p => p.Id).ToList();
                    }
                    else
                    {
                        categoryID = summaryItem.Category.ParentCategoryId;
                        ids = ViewModelLocator.CategoryViewModel.AccountBookDataContext.Categories.Where(p => p.ParentCategoryId == summaryItem.Category.ParentCategory.Id)
                        .Select(p => p.Id).ToList();
                    }

                    queryForSeeMore = queryForSeeMore.Where(p => ids.Contains(p.CategoryId));
                }
                else
                {
                    queryForSeeMore = queryForSeeMore.Where(i => i.CategoryId == categoryID);
                }
            }
            else
            {
                if (account != null)
                {
                    queryForSeeMore = queryForSeeMore.Where(p => p.AccountId == account.Id);
                }
            }

            StatsticSummaryItemsViewer.NeedReloadData = true;

            Pages.DialogBox.StatsticSummaryItemsViewer.DataSourceGetter = () => queryForSeeMore;

            pageFrom.NavigateTo("/Pages/DialogBox/StatsticSummaryItemsViewer.xaml");
        }
开发者ID:RukaiYu,项目名称:TinyMoneyManager.WP8,代码行数:56,代码来源:StatsticSummaryItemsViewer.xaml.cs

示例8: Go

        /// <summary>
        /// Goes the specified repayment.
        /// </summary>
        /// <param name="repayment">The repayment.</param>
        public static void Go(Repayment repayment, PhoneApplicationPage pageFrom, PageActionType action)
        {
            var warpped = repayment;

            if (action == PageActionType.Add)
            {
                warpped = ViewModelLocator.BorrowLeanViewModel.CreateRepayOrReceieveEntry(repayment);
                warpped.RepayToOrGetBackFrom = repayment;
            }

            GetEditObject = () => warpped;

            pageFrom.NavigateTo("/Pages/BorrowAndLean/RepayOrReceiveEditorPage.xaml?action={0}", action);
        }
开发者ID:RukaiYu,项目名称:TinyMoneyManager.WP8,代码行数:18,代码来源:RepayOrReceiveEditorPage.xaml.cs

示例9: Go

 public static void Go(PhoneApplicationPage fromPage)
 {
     fromPage.NavigateTo("/Pages/TransactionHistory.xaml");
 }
开发者ID:RukaiYu,项目名称:TinyMoneyManager.WP8,代码行数:4,代码来源:TransactionHistory.xaml.cs

示例10: View

 /// <summary>
 /// Views the specified from page.
 /// </summary>
 /// <param name="fromPage">From page.</param>
 /// <param name="item">The item.</param>
 public static void View(PhoneApplicationPage fromPage, Repayment item)
 {
     if (item != null)
     {
         fromPage.NavigateTo("/Pages/BorrowAndLean/BorrowOrLoanRepayReceiveInfoViewerPage.xaml?id={0}", item.Id);
     }
 }
开发者ID:RukaiYu,项目名称:TinyMoneyManager.WP8,代码行数:12,代码来源:BorrowOrLoanRepayReceiveInfoViewerPage.xaml.cs

示例11: Go

 public static void Go(PhoneApplicationPage fromPage, TallySchedule item)
 {
     System.Guid id = item.Id;
     fromPage.NavigateTo("/Pages/CustomizedTally/CustomizedTallyPage.xaml?id={0}", new object[] { id });
 }
开发者ID:RukaiYu,项目名称:TinyMoneyManager.WP8,代码行数:5,代码来源:CustomizedTallyPage.xaml.cs

示例12: Go

 /// <summary>
 /// Goes the specified from page.
 /// </summary>
 /// <param name="fromPage">From page.</param>
 public static void Go(PhoneApplicationPage fromPage, AccountItem accountItem)
 {
     currentObject = accountItem;
     fromPage.NavigateTo("/Pages/AccountItemViews/InstallmentsItemEditor.xaml");
 }
开发者ID:RukaiYu,项目名称:TinyMoneyManager.WP8,代码行数:9,代码来源:InstallmentsItemEditor.xaml.cs

示例13: View

 internal static void View(System.Guid peopleId, PhoneApplicationPage fromPage, int? pivotIndexTo = 0)
 {
     fromPage.NavigateTo("/Pages/People/PeopleProfileViewerPage.xaml?id={0}&pivotTo={1}", peopleId, pivotIndexTo);
 }
开发者ID:RukaiYu,项目名称:TinyMoneyManager.WP8,代码行数:4,代码来源:PeopleProfileViewerPage.xaml.cs

示例14: Go

 public static void Go(PageActionHandler<PeopleProfile> selectorHandler, PhoneApplicationPage fromPage)
 {
     PeopleSelectorHandler = selectorHandler;
     fromPage.NavigateTo("/pages/DialogBox/PeopleImporter.xaml");
 }
开发者ID:RukaiYu,项目名称:TinyMoneyManager.WP8,代码行数:5,代码来源:PeopleImporter.xaml.cs

示例15: GoTo

 /// <summary>
 /// Goes to this page from <para>fromPage</para>.
 /// </summary>
 /// <param name="fromPage">From page.</param>
 public static void GoTo(PhoneApplicationPage fromPage, string currencySymbol, string currencyNotes)
 {
     fromPage.NavigateTo("/Pages/DialogBox/MoneyBuildingPage.xaml?currency={0}&currencyNotes={1}", currencySymbol, currencyNotes);
 }
开发者ID:RukaiYu,项目名称:TinyMoneyManager.WP8,代码行数:8,代码来源:MoneyBuildingPage.xaml.cs


注:本文中的PhoneApplicationPage.NavigateTo方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。