C# 클래스 ReactiveUI.RoutableViewModelMixin

파일 보기 프로젝트 열기: reactiveui/ReactiveUI

공개 메소드들

메소드 설명
WhenNavigatedTo ( this This, Func onNavigatedTo ) : IDisposable

This method allows you to set up connections that only operate while the ViewModel has focus, and cleans up when the ViewModel loses focus.

WhenNavigatedToObservable ( this This ) : IObservable

This method will return an observable that fires events every time the topmost ViewModel in the navigation stack is this ViewModel. This allows you to set up connections that only operate while the ViewModel has focus. The observable will complete when the ViewModel is removed completely from the navigation stack. If your ViewModel can be _removed_ from the navigation stack and then reused later, you must call this method and resubscribe each time it is reused.

WhenNavigatingFromObservable ( this This ) : IObservable

This method will return an observable that fires events _just before_ the ViewModel is no longer the topmost ViewModel in the navigation stack. This allows you to clean up anything before losing focus. The observable will complete when the ViewModel is removed completely from the navigation stack. If your ViewModel can be _removed_ from the navigation stack and then reused later, you must call this method and resubscribe each time it is reused.

메소드 상세

WhenNavigatedTo() 공개 정적인 메소드

This method allows you to set up connections that only operate while the ViewModel has focus, and cleans up when the ViewModel loses focus.
public static WhenNavigatedTo ( this This, Func onNavigatedTo ) : IDisposable
This this
onNavigatedTo Func Called when the ViewModel is navigated /// to - return an IDisposable that cleans up all of the things that are /// configured in the method.
리턴 IDisposable

WhenNavigatedToObservable() 공개 정적인 메소드

This method will return an observable that fires events every time the topmost ViewModel in the navigation stack is this ViewModel. This allows you to set up connections that only operate while the ViewModel has focus. The observable will complete when the ViewModel is removed completely from the navigation stack. If your ViewModel can be _removed_ from the navigation stack and then reused later, you must call this method and resubscribe each time it is reused.
public static WhenNavigatedToObservable ( this This ) : IObservable
This this
리턴 IObservable

WhenNavigatingFromObservable() 공개 정적인 메소드

This method will return an observable that fires events _just before_ the ViewModel is no longer the topmost ViewModel in the navigation stack. This allows you to clean up anything before losing focus. The observable will complete when the ViewModel is removed completely from the navigation stack. If your ViewModel can be _removed_ from the navigation stack and then reused later, you must call this method and resubscribe each time it is reused.
public static WhenNavigatingFromObservable ( this This ) : IObservable
This this
리턴 IObservable