private void btnMyRoutes_Clicked(object sender, MR.Gestures.DownUpEventArgs e) { //TODO navigate user to RoutesLogPage btnMyRoutes.BackgroundColor = Color.FromHex("#6caefa"); ((MasterDetailPage)App.Current.MainPage).Detail.Navigation.PushAsync(new RouteDetailsPage()); }
private void Button1_Down(object sender, MR.Gestures.DownUpEventArgs e) { if (button2_attached) { ViewModel.AddText("Button 1 down, removing event handler for Button2.Down."); Button2.Down -= Button2_Down; button2_attached = false; } else { ViewModel.AddText("Button 1 down, adding event handler for Button2.Down."); Button2.Down += Button2_Down; button2_attached = true; } }
private void Frame_Down(object sender, MR.Gestures.DownUpEventArgs e) { // remember draggingObject draggingObject = (Frame)sender; }
protected override void OnUp(MR.Gestures.DownUpEventArgs e) { base.OnUp(e); ((Button)e.Sender).BackgroundColor = Color.FromHex("808080"); }
protected override void OnDown(MR.Gestures.DownUpEventArgs e) { base.OnDown(e); ((Button)e.Sender).BackgroundColor = Color.Yellow; }
void Cell_Up(object sender, MR.Gestures.DownUpEventArgs e) { ((TextOnlyViewModel)BindingContext).AddText("Cell_Up method called with " + e.TriggeringTouches.Length + " fingers"); }
private void Button2_Down(object sender, MR.Gestures.DownUpEventArgs e) { ViewModel.AddText("Button 2 down"); }
private void btnSettings_Released(object sender, MR.Gestures.DownUpEventArgs e) { btnSettings.BackgroundColor = Color.FromHex("#2196F3"); }
private void btnSettings_Clicked(object sender, MR.Gestures.DownUpEventArgs e) { //TODO Navigate user to settings page btnSettings.BackgroundColor = Color.FromHex("#6caefa"); }
private void btnNewRoute_Clicked(object sender, MR.Gestures.DownUpEventArgs e) { //TODO Navigate user to NewRoutePage btnNewRoute.BackgroundColor = Color.FromHex("#6caefa"); }