C# Class _2048_UWP.MainPage

可用于自身或导航至 Frame 内部的空白页。
Inheritance: Windows.UI.Xaml.Controls.Page
Show file Open project: YouthLin/2048UWP

Public Methods

Method Description
MainPage ( ) : System

Protected Methods

Method Description
OnNavigatedFrom ( NavigationEventArgs e ) : void
OnNavigatedTo ( NavigationEventArgs e ) : void

Private Methods

Method Description
AddNumber ( int o, int &s ) : bool
Btn_LostFocus ( object sender, RoutedEventArgs e ) : void
ClearBlank ( int o ) : bool
IfGameOver ( ) : void
Init ( ) : void
MainPage_Loaded ( object sender, RoutedEventArgs e ) : void
Move ( int direction ) : void
MoveAnimate ( Tile tile, int direction, int distance ) : void
NewGame ( int times ) : void
Page_KeyUp ( object sender, KeyRoutedEventArgs e ) : void
Page_SizeChanged ( object sender, SizeChangedEventArgs e ) : void
_ManipulationCompleted ( object sender, ManipulationCompletedRoutedEventArgs e ) : void
_ManipulationDelta ( object sender, ManipulationDeltaRoutedEventArgs e ) : void
_ManipulationStarted ( object sender, ManipulationStartedRoutedEventArgs e ) : void
isGameOver ( ) : bool
menugrid_PointerEntered ( object sender, PointerRoutedEventArgs e ) : void
menugrid_Tapped ( object sender, TappedRoutedEventArgs e ) : void
newgrid_PointerEntered ( object sender, PointerRoutedEventArgs e ) : void
newgrid_Tapped ( object sender, TappedRoutedEventArgs e ) : void

Method Details

MainPage() public method

public MainPage ( ) : System
return System

OnNavigatedFrom() protected method

protected OnNavigatedFrom ( NavigationEventArgs e ) : void
e Windows.UI.Xaml.Navigation.NavigationEventArgs
return void

OnNavigatedTo() protected method

protected OnNavigatedTo ( NavigationEventArgs e ) : void
e Windows.UI.Xaml.Navigation.NavigationEventArgs
return void