C# 클래스 Geowigo.ViewModels.BaseViewModel

A base class for View models that deal with Wherigo objects.
상속: System.Windows.DependencyObject
파일 보기 프로젝트 열기: WFoundation/WF.Player.WinPhone 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
ApplicationBarProperty System.Windows.DependencyProperty
CartridgeProperty System.Windows.DependencyProperty
IsProgressBarVisibleProperty System.Windows.DependencyProperty
ProgressBarStatusTextProperty System.Windows.DependencyProperty
WherigoObjectProperty System.Windows.DependencyProperty

공개 메소드들

메소드 설명
BaseViewModel ( ) : System
OnPageBackKeyPress ( CancelEventArgs e ) : void

Called by pages when the back key is pressed.

OnPageNavigatedTo ( System.Windows.Navigation.NavigationEventArgs e, NavigationContext navCtx ) : void

Called by pages when they are navigated to.

OnPageNavigatingFrom ( System.Windows.Navigation.NavigatingCancelEventArgs e, NavigationContext navctx ) : void

Called by the page when the navigation is leaving it.

보호된 메소드들

메소드 설명
InitFromNavigation ( NavigationInfo nav ) : void

Initializes the view model from the navigation context.

OnCoreGameStateChanged ( EngineGameState oldState, EngineGameState newState ) : void

Called when the state of the game engine has changed.

OnCorePropertyChanged ( string propName ) : void

Called when a property of the Wherigo Core has changed.

OnHasMessageBoxChanged ( bool hasMessageBox ) : void

Called when a non-native message box appears or disappears. This allows view models to adjust their layout, such as removing application bars.

The default implementation hides the application bar when a message box appears and shows it when a message box disappears.

OnModelChanged ( Models newModel ) : void

Called when the underlying model has changed.

OnModelChanging ( Models oldValue, Models newValue ) : void

Called when the underlying model is changing.

OnPageBackKeyPressOverride ( CancelEventArgs e ) : void

Called when an allowed back key pressed event has occured.

OnPageNavigatedBackToOverride ( ) : void

Called when the user navigated back to page.

OnWherigoObjectChanged ( WF.Player.Core.WherigoObject obj ) : void

Called when the associated Wherigo object has changed.

OnWherigoObjectPropertyChanged ( string propName ) : void

Called when a property of the associated Wherigo object has changed.

비공개 메소드들

메소드 설명
Core_PropertyChanged ( object sender, PropertyChangedEventArgs e ) : void
InitFromNavigationInternal ( NavigationInfo nav ) : void
OnAppViewModelHasMessageBoxChanged ( object sender, EventArgs e ) : void
OnApplicationBarChanged ( IApplicationBar bar ) : void
OnApplicationBarPropertyChanged ( DependencyObject o, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnIsProgressBarVisibleChanged ( bool newValue ) : void
OnIsProgressBarVisiblePropertyChanged ( DependencyObject o, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnModelChangingInternal ( Models oldValue, Models newValue ) : void
OnWherigoObjectChangedInternal ( System.Windows.DependencyPropertyChangedEventArgs e ) : void
RefreshApplicationBarIsVisible ( bool hasMessageBox = null, bool isProgressBarVisible = null ) : void
WherigoObjectProperty_PropertyChanged ( DependencyObject o, System.Windows.DependencyPropertyChangedEventArgs e ) : void
WherigoObject_PropertyChanged ( object sender, System e ) : void

메소드 상세

BaseViewModel() 공개 메소드

public BaseViewModel ( ) : System
리턴 System

InitFromNavigation() 보호된 메소드

Initializes the view model from the navigation context.
protected InitFromNavigation ( NavigationInfo nav ) : void
nav NavigationInfo
리턴 void

OnCoreGameStateChanged() 보호된 메소드

Called when the state of the game engine has changed.
protected OnCoreGameStateChanged ( EngineGameState oldState, EngineGameState newState ) : void
oldState EngineGameState State the engine had before the change occured.
newState EngineGameState State the engine has now.
리턴 void

OnCorePropertyChanged() 보호된 메소드

Called when a property of the Wherigo Core has changed.
protected OnCorePropertyChanged ( string propName ) : void
propName string Property that has changed.
리턴 void

OnHasMessageBoxChanged() 보호된 메소드

Called when a non-native message box appears or disappears. This allows view models to adjust their layout, such as removing application bars.
The default implementation hides the application bar when a message box appears and shows it when a message box disappears.
protected OnHasMessageBoxChanged ( bool hasMessageBox ) : void
hasMessageBox bool
리턴 void

OnModelChanged() 보호된 메소드

Called when the underlying model has changed.
protected OnModelChanged ( Models newModel ) : void
newModel Models
리턴 void

OnModelChanging() 보호된 메소드

Called when the underlying model is changing.
protected OnModelChanging ( Models oldValue, Models newValue ) : void
oldValue Models
newValue Models
리턴 void

OnPageBackKeyPress() 공개 메소드

Called by pages when the back key is pressed.
public OnPageBackKeyPress ( CancelEventArgs e ) : void
e CancelEventArgs
리턴 void

OnPageBackKeyPressOverride() 보호된 메소드

Called when an allowed back key pressed event has occured.
protected OnPageBackKeyPressOverride ( CancelEventArgs e ) : void
e CancelEventArgs
리턴 void

OnPageNavigatedBackToOverride() 보호된 메소드

Called when the user navigated back to page.
protected OnPageNavigatedBackToOverride ( ) : void
리턴 void

OnPageNavigatedTo() 공개 메소드

Called by pages when they are navigated to.
public OnPageNavigatedTo ( System.Windows.Navigation.NavigationEventArgs e, NavigationContext navCtx ) : void
e System.Windows.Navigation.NavigationEventArgs
navCtx NavigationContext
리턴 void

OnPageNavigatingFrom() 공개 메소드

Called by the page when the navigation is leaving it.
public OnPageNavigatingFrom ( System.Windows.Navigation.NavigatingCancelEventArgs e, NavigationContext navctx ) : void
e System.Windows.Navigation.NavigatingCancelEventArgs
navctx NavigationContext
리턴 void

OnWherigoObjectChanged() 보호된 메소드

Called when the associated Wherigo object has changed.
protected OnWherigoObjectChanged ( WF.Player.Core.WherigoObject obj ) : void
obj WF.Player.Core.WherigoObject
리턴 void

OnWherigoObjectPropertyChanged() 보호된 메소드

Called when a property of the associated Wherigo object has changed.
protected OnWherigoObjectPropertyChanged ( string propName ) : void
propName string
리턴 void

프로퍼티 상세

ApplicationBarProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows ApplicationBarProperty
리턴 System.Windows.DependencyProperty

CartridgeProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows CartridgeProperty
리턴 System.Windows.DependencyProperty

IsProgressBarVisibleProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows IsProgressBarVisibleProperty
리턴 System.Windows.DependencyProperty

ProgressBarStatusTextProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows ProgressBarStatusTextProperty
리턴 System.Windows.DependencyProperty

WherigoObjectProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows WherigoObjectProperty
리턴 System.Windows.DependencyProperty