private void SendTripMessage(PageLoadMessage page) { if (page.Page == ApplicationPage.TripDetails) { PathResultsModel.SetSelectedPathOption(PathResultsModel.SelectedPathOption.Letter); } }
public TripDetails() { InitializeComponent(); Loaded += (s, e) => { Messenger.Default.Register <TripMessage>(this, (action) => DisplayRoute(action)); // Send a request for the map route to be sent. PageLoadMessage.Send(DrumbleApp.Shared.Enums.ApplicationPage.TripDetails); }; Unloaded += (s, e) => { Dispose(); }; }