C# 클래스 PhotoSharingApp.Universal.Facades.NavigationFacade

Encapsulates page navigation.
상속: INavigationFacade
파일 보기 프로젝트 열기: Microsoft/Appsample-Photosharing

공개 메소드들

메소드 설명
AddType ( Type view, Type viewModel ) : void

Adds the specified types to the association list.

GoBack ( int steps = 1 ) : void

Goes back in the navigation stack for the specified number of steps.

NavigateToAboutView ( ) : void

Navigates to the about view.

NavigateToCameraView ( ) : void

Navigates to the camera view.

NavigateToCameraView ( CategoryPreview category ) : void

Navigates to the camera view.

NavigateToCategoriesView ( ) : void

Navigates to the categories view.

NavigateToCropView ( StorageFile file ) : void

Navigates to the crop view.

NavigateToCropView ( StorageFile file, CategoryPreview category ) : void

Navigates to the crop view.

NavigateToPhotoDetailsView ( CategoryPreview category, Photo photo ) : void

Navigates to the photo details view.

NavigateToPhotoDetailsView ( Photo photo ) : void

Navigates to the photo details view.

NavigateToPhotoDetailsView ( string photoId ) : void

Navigates to the photo details view.

NavigateToPhotoStream ( Category category ) : void

Navigates to the photo stream view.

NavigateToPhotoStream ( CategoryPreview category ) : void

Navigates to the photo stream view.

NavigateToPhotoStream ( CategoryPreview categoryPreview, PhotoThumbnail photoThumbnail ) : void

Navigates to the photo stream view.

NavigateToProfileView ( ) : void

Navigates to the signed-in user's profile view.

NavigateToProfileView ( User user ) : void

Navigates to the given user's profile view.

NavigateToSignInView ( ) : void

Navigates to the sign-in view.

NavigateToUploadView ( Photo photo, Category category ) : void

Navigates to the upload view to update data of the existing photo.

NavigateToUploadView ( WriteableBitmap image, CategoryPreview category ) : void

Navigates to the upload view.

NavigateToWelcomeView ( ) : void

Navigates to the Welcome View page.

RemoveBackStackFrames ( int numberOfFrames ) : void

Displays a dialog that lets the user pick a category. Removes the specified number of frames from the back stack.

RemoveUploadPhotoFramesFromBackStack ( string categoryIdNavigatedTo ) : void

Removes the frames associated with uploading a photo from the back stack.

ShowCategoryChooserDialog ( ) : Task

Displays a dialog that lets the user pick a category.

ShowCreateCategoryDialog ( ) : System.Threading.Tasks.Task

Displays a dialog that lets the user create a new category.

ShowGiveGoldDialog ( Photo photo ) : Task

Displays a dialog that lets the user give gold

비공개 메소드들

메소드 설명
EnsureNavigationFrameIsAvailable ( ) : void

Makes sure a frame is available that can be used for navigation.

IsTypePhotoUploadRelated ( Type pageType ) : bool

Checks if the specified type is a photo upload related page.

Navigate ( Type viewModelType, object parameter = null, bool serializeParameter = true ) : void

Navigates to the specified view model type.

메소드 상세

AddType() 공개 정적인 메소드

Adds the specified types to the association list.
The ViewModel has already been added and is only allowed once.
public static AddType ( Type view, Type viewModel ) : void
view System.Type The view type.
viewModel System.Type The ViewModel type.
리턴 void

GoBack() 공개 메소드

Goes back in the navigation stack for the specified number of steps.
public GoBack ( int steps = 1 ) : void
steps int The steps. By default: 1.
리턴 void

NavigateToAboutView() 공개 메소드

Navigates to the about view.
public NavigateToAboutView ( ) : void
리턴 void

NavigateToCameraView() 공개 메소드

Navigates to the camera view.
public NavigateToCameraView ( ) : void
리턴 void

NavigateToCameraView() 공개 메소드

Navigates to the camera view.
public NavigateToCameraView ( CategoryPreview category ) : void
category PhotoSharingApp.Universal.Models.CategoryPreview The category.
리턴 void

NavigateToCategoriesView() 공개 메소드

Navigates to the categories view.
public NavigateToCategoriesView ( ) : void
리턴 void

NavigateToCropView() 공개 메소드

Navigates to the crop view.
public NavigateToCropView ( StorageFile file ) : void
file Windows.Storage.StorageFile The photo to crop.
리턴 void

NavigateToCropView() 공개 메소드

Navigates to the crop view.
public NavigateToCropView ( StorageFile file, CategoryPreview category ) : void
file Windows.Storage.StorageFile The photo to crop.
category PhotoSharingApp.Universal.Models.CategoryPreview The selected category for the photo.
리턴 void

NavigateToPhotoDetailsView() 공개 메소드

Navigates to the photo details view.
public NavigateToPhotoDetailsView ( CategoryPreview category, Photo photo ) : void
category PhotoSharingApp.Universal.Models.CategoryPreview The category.
photo PhotoSharingApp.Universal.Models.Photo The photo.
리턴 void

NavigateToPhotoDetailsView() 공개 메소드

Navigates to the photo details view.
public NavigateToPhotoDetailsView ( Photo photo ) : void
photo PhotoSharingApp.Universal.Models.Photo The photo.
리턴 void

NavigateToPhotoDetailsView() 공개 메소드

Navigates to the photo details view.
public NavigateToPhotoDetailsView ( string photoId ) : void
photoId string The photoId of the photo to navigate to.
리턴 void

NavigateToPhotoStream() 공개 메소드

Navigates to the photo stream view.
public NavigateToPhotoStream ( Category category ) : void
category PhotoSharingApp.Universal.Models.Category The category.
리턴 void

NavigateToPhotoStream() 공개 메소드

Navigates to the photo stream view.
public NavigateToPhotoStream ( CategoryPreview category ) : void
category PhotoSharingApp.Universal.Models.CategoryPreview The category preview instance.
리턴 void

NavigateToPhotoStream() 공개 메소드

Navigates to the photo stream view.
public NavigateToPhotoStream ( CategoryPreview categoryPreview, PhotoThumbnail photoThumbnail ) : void
categoryPreview PhotoSharingApp.Universal.Models.CategoryPreview The category preview instance.
photoThumbnail PhotoSharingApp.Universal.Models.PhotoThumbnail /// The photo thumbnail that will determine the scroll position. ///
리턴 void

NavigateToProfileView() 공개 메소드

Navigates to the signed-in user's profile view.
public NavigateToProfileView ( ) : void
리턴 void

NavigateToProfileView() 공개 메소드

Navigates to the given user's profile view.
public NavigateToProfileView ( User user ) : void
user PhotoSharingApp.Universal.Models.User The user to show the profile view for.
리턴 void

NavigateToSignInView() 공개 메소드

Navigates to the sign-in view.
public NavigateToSignInView ( ) : void
리턴 void

NavigateToUploadView() 공개 메소드

Navigates to the upload view to update data of the existing photo.
public NavigateToUploadView ( Photo photo, Category category ) : void
photo PhotoSharingApp.Universal.Models.Photo The photo to update.
category PhotoSharingApp.Universal.Models.Category The associated category.
리턴 void

NavigateToUploadView() 공개 메소드

Navigates to the upload view.
public NavigateToUploadView ( WriteableBitmap image, CategoryPreview category ) : void
image Windows.UI.Xaml.Media.Imaging.WriteableBitmap The image to upload.
category PhotoSharingApp.Universal.Models.CategoryPreview The category to upload the image into.
리턴 void

NavigateToWelcomeView() 공개 메소드

Navigates to the Welcome View page.
public NavigateToWelcomeView ( ) : void
리턴 void

RemoveBackStackFrames() 공개 메소드

Displays a dialog that lets the user pick a category. Removes the specified number of frames from the back stack.
public RemoveBackStackFrames ( int numberOfFrames ) : void
numberOfFrames int The number of frames.
리턴 void

RemoveUploadPhotoFramesFromBackStack() 공개 메소드

Removes the frames associated with uploading a photo from the back stack.
public RemoveUploadPhotoFramesFromBackStack ( string categoryIdNavigatedTo ) : void
categoryIdNavigatedTo string The category id that was navigated to after photo upload.
리턴 void

ShowCategoryChooserDialog() 공개 메소드

Displays a dialog that lets the user pick a category.
public ShowCategoryChooserDialog ( ) : Task
리턴 Task

ShowCreateCategoryDialog() 공개 메소드

Displays a dialog that lets the user create a new category.
public ShowCreateCategoryDialog ( ) : System.Threading.Tasks.Task
리턴 System.Threading.Tasks.Task

ShowGiveGoldDialog() 공개 메소드

Displays a dialog that lets the user give gold
public ShowGiveGoldDialog ( Photo photo ) : Task
photo PhotoSharingApp.Universal.Models.Photo
리턴 Task