Esempio n. 1
0
        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());
        }
Esempio n. 2
0
 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");
 }
Esempio n. 7
0
 private void Button2_Down(object sender, MR.Gestures.DownUpEventArgs e)
 {
     ViewModel.AddText("Button 2 down");
 }
Esempio n. 8
0
 private void btnSettings_Released(object sender, MR.Gestures.DownUpEventArgs e)
 {
     btnSettings.BackgroundColor = Color.FromHex("#2196F3");
 }
Esempio n. 9
0
 private void btnSettings_Clicked(object sender, MR.Gestures.DownUpEventArgs e)
 {
     //TODO Navigate user to settings page
     btnSettings.BackgroundColor = Color.FromHex("#6caefa");
 }
Esempio n. 10
0
 private void btnNewRoute_Clicked(object sender, MR.Gestures.DownUpEventArgs e)
 {
     //TODO Navigate user to NewRoutePage
     btnNewRoute.BackgroundColor = Color.FromHex("#6caefa");
 }