C# Class EasyBike.WinPhone.MainPage

An empty page that can be used on its own or navigated to within a Frame.
Inheritance: Windows.UI.Xaml.Controls.Page
Exibir arquivo Open project: ThePublicBikeGang/EasyBike

Public Properties

Property Type Description
LastSearchGeopoint Geopoint
Map MapControl
PreviousSelectedItem object
PreviousSelectedVelibStation StationControl
SearchRouteCancellationToken System.Threading.CancellationTokenSource
appLaunchedFromProtocolUri bool
compassMode bool
dispatcher Windows.UI.Core.CoreDispatcher
gl Windows.Devices.Geolocation.Geolocator
mainPage MainPage

Public Methods

Method Description
DisableLocalization ( ) : void
EnableLocalization ( ) : void
GetRoute ( Geopoint point, Favorite favorit = null ) : void
GetRouteWithToken ( Geopoint endPoint, CancellationToken token, Favorite favorite = null, int retry ) : void
HideSearchLocationPoint ( ) : void
MainPage ( ) : GalaSoft.MvvmLight.Ioc
SelectItem ( object item, bool skipFlyout ) : void
SetViewToLocation ( double lat, double lon ) : void
ShowFlyout ( object item ) : void
StopCompassAndUserLocationTracking ( ) : void
UpdateNorthElementAngle ( double angle ) : void
UpdateOverlay ( object sender, RoutedEventArgs e ) : void
UpdateUserLocationElementAngle ( double angle ) : void

Protected Methods

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

Private Methods

Method Description
AboutButton_Click ( object sender, Windows e ) : void
AddressTextBox_KeyUp ( object sender, Windows e ) : void
FavoriteNameButtonOk_Click ( object sender, RoutedEventArgs e ) : void
FavoriteNameTextBox_KeyUp ( object sender, Windows e ) : void
FavoritsButton_Click ( object sender, Windows e ) : void
FindLocation ( string address, Geopoint hintPoint, uint maxResult ) : Task
FindLocationsAt ( Geopoint geoPoint ) : Task
FindRoute ( Geopoint startPoint, Geopoint endPoint ) : Task
FlyoutButtonAddFavorit_Click ( object sender, Windows e ) : void
FlyoutButtonDriveTo_Click ( object sender, Windows e ) : void
FormatShareLocationMessage ( ) : string
HardwareButtons_BackPressed ( object sender, BackPressedEventArgs e ) : void
HideSearch ( ) : void
HowToUseThisAppButton_Click ( object sender, Windows e ) : void
Init ( ) : void
LocationButton_Click ( object sender, Windows e ) : void
MainPage_FireGoToFavorite ( object sender, EventArgs e ) : void
MapCtrl_DoubleTapped ( object sender, Windows e ) : void
NorthIndicator_Click ( object sender, Windows e ) : void
ReverseGeocode ( bool fromSearch = false ) : void
ReverseGeocode ( bool fromSearch, CancellationToken token, int retry ) : void
SearchAddress ( CancellationToken token ) : void
SearchButton_Click ( object sender, Windows e ) : void
SearchLocationPoint_Holding ( object sender, HoldingRoutedEventArgs e ) : void
SearchLocationPoint_ManipulationStarting ( object sender, Windows e ) : void
SearchLocationPoint_Tapped ( object sender, Windows e ) : void
SetCompassIcon ( ) : void
SetTargetIcon ( ) : void
SetView ( Geopoint center, double zoomLevel, double heading, double desiredPitch, MapAnimationKind animation ) : void
ShareByMailButton_Click ( object sender, Windows e ) : void
ShareByTextButton_Click ( object sender, Windows e ) : void
ShowSearchLocationPoint ( Geopoint location, string name ) : void
ShowUserLocation ( ) : void
StopCompass ( ) : void
ToggleButtonVelibParking_Click ( object sender, Windows e ) : void
TouchPanel_Holding ( object sender, HoldingRoutedEventArgs e ) : void
TouchPanel_ManipulationStarted ( object sender, ManipulationStartedRoutedEventArgs e ) : void
TouchPanel_ManipulationStarting ( object sender, ManipulationStartingRoutedEventArgs e ) : void
VelibTemplateStationRootCanvas_ManipulationStarting ( object sender, Windows e ) : void

Invoked when this page is about to be displayed in a Frame.

_notificationService_OnNotify ( object sender, Notification e ) : void
compass_ReadingChanged ( Compass sender, CompassReadingChangedEventArgs args ) : void
gl_PositionChanged ( Geolocator sender, PositionChangedEventArgs args ) : void
gl_StatusChanged ( Geolocator sender, StatusChangedEventArgs args ) : void
refreshAccuracyIndicator ( ) : void

Method Details

DisableLocalization() public method

public DisableLocalization ( ) : void
return void

EnableLocalization() public method

public EnableLocalization ( ) : void
return void

GetRoute() public method

public GetRoute ( Geopoint point, Favorite favorit = null ) : void
point Geopoint
favorit EasyBike.Models.Favorites.Favorite
return void

GetRouteWithToken() public method

public GetRouteWithToken ( Geopoint endPoint, CancellationToken token, Favorite favorite = null, int retry ) : void
endPoint Geopoint
token System.Threading.CancellationToken
favorite EasyBike.Models.Favorites.Favorite
retry int
return void

HideSearchLocationPoint() public method

public HideSearchLocationPoint ( ) : void
return void

MainPage() public method

public MainPage ( ) : GalaSoft.MvvmLight.Ioc
return GalaSoft.MvvmLight.Ioc

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

SelectItem() public method

public SelectItem ( object item, bool skipFlyout ) : void
item object
skipFlyout bool
return void

SetViewToLocation() public method

public SetViewToLocation ( double lat, double lon ) : void
lat double
lon double
return void

ShowFlyout() public method

public ShowFlyout ( object item ) : void
item object
return void

StopCompassAndUserLocationTracking() public method

public StopCompassAndUserLocationTracking ( ) : void
return void

UpdateNorthElementAngle() public method

public UpdateNorthElementAngle ( double angle ) : void
angle double
return void

UpdateOverlay() public method

public UpdateOverlay ( object sender, RoutedEventArgs e ) : void
sender object
e Windows.UI.Xaml.RoutedEventArgs
return void

UpdateUserLocationElementAngle() public method

public UpdateUserLocationElementAngle ( double angle ) : void
angle double
return void

Property Details

LastSearchGeopoint public_oe property

public Geopoint LastSearchGeopoint
return Geopoint

Map public_oe static_oe property

public static MapControl Map
return MapControl

PreviousSelectedItem public_oe property

public object PreviousSelectedItem
return object

PreviousSelectedVelibStation public_oe property

public StationControl PreviousSelectedVelibStation
return StationControl

SearchRouteCancellationToken public_oe property

public CancellationTokenSource,System.Threading SearchRouteCancellationToken
return System.Threading.CancellationTokenSource

appLaunchedFromProtocolUri public_oe property

public bool appLaunchedFromProtocolUri
return bool

compassMode public_oe property

public bool compassMode
return bool

dispatcher public_oe static_oe property

public static CoreDispatcher,Windows.UI.Core dispatcher
return Windows.UI.Core.CoreDispatcher

gl public_oe property

public Geolocator,Windows.Devices.Geolocation gl
return Windows.Devices.Geolocation.Geolocator

mainPage public_oe static_oe property

public static MainPage mainPage
return MainPage