public AddTripView()
 {
     InitializeComponent();
     AddTripViewModel = App.Current.Services.GetService <AddTripViewModel>();
     DataContext      = AddTripViewModel;
     ResourceLoader   = ResourceLoader.GetForCurrentView();
     AddTripName.AddHandler(TappedEvent, new TappedEventHandler(ResetErrors), true);
     AddTripLocation.AddHandler(TappedEvent, new TappedEventHandler(ResetErrors), true);
     AddTripStartDate.AddHandler(TappedEvent, new TappedEventHandler(ResetErrors), true);
     AddTripEndDate.AddHandler(TappedEvent, new TappedEventHandler(ResetErrors), true);
 }
        private void ResetErrors(object sender, TappedRoutedEventArgs e)
        {
            AddTripName.Header = ResourceLoader.GetString("TripName/Header");
            AddTripName.ClearValue(BorderBrushProperty);

            AddTripLocation.Header = ResourceLoader.GetString("TripLocation/Header");
            AddTripLocation.ClearValue(BorderBrushProperty);

            AddTripStartDate.Header = ResourceLoader.GetString("TripStartDate/Header");
            AddTripStartDate.ClearValue(ForegroundProperty);
            AddTripStartDate.ClearValue(BorderBrushProperty);

            AddTripEndDate.Header = ResourceLoader.GetString("TripEndDate/Header");
            AddTripEndDate.ClearValue(ForegroundProperty);
            AddTripEndDate.ClearValue(BorderBrushProperty);
        }