本文整理汇总了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}¤tName={1}&type={2}&childName={3}", new object[] { category.ParentCategoryId, category.ParentCategory == null ? "N/A" : category.ParentCategory.Name, category.CategoryType, category.Name });
}
示例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}¤tName={1}&type={2}&childName={3}", new object[] { category.ParentCategoryId, category.ParentCategory.Name, category.CategoryType, category.Name });
}
示例3: Go
public static void Go(PhoneApplicationPage fromPage, Guid id, PageActionType action)
{
fromPage.NavigateTo("/Pages/NotificationCenter/NotificationEditor.xaml?id={0}&action={1}", id, action);
}
示例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 });
}
示例5: Go
public static void Go(System.Guid attachedId, PhoneApplicationPage fromPage)
{
fromPage.NavigateTo("/pages/AccountItemViews/AttachPeoplePage.xaml?id={0}", new object[] { attachedId });
}
示例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 });
}
示例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");
}
示例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);
}
示例9: Go
public static void Go(PhoneApplicationPage fromPage)
{
fromPage.NavigateTo("/Pages/TransactionHistory.xaml");
}
示例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);
}
}
示例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 });
}
示例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");
}
示例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);
}
示例14: Go
public static void Go(PageActionHandler<PeopleProfile> selectorHandler, PhoneApplicationPage fromPage)
{
PeopleSelectorHandler = selectorHandler;
fromPage.NavigateTo("/pages/DialogBox/PeopleImporter.xaml");
}
示例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}¤cyNotes={1}", currencySymbol, currencyNotes);
}