/* * Location_Cliked - Displays the list of locations. */ void Location_Cliked(object sender, EventArgs args) { overlayLocation.IsVisible = true; Give_Location.IsVisible = false; Interrupt_List.IsVisible = false; selectedSession.locations = database.GetLocationOfSession(selectedSession.Id); foreach (var loc in selectedSession.locations) { locationList.Add(loc); } var objectsListLocation = new ListView() { HeightRequest = 200 }; Location_List.ItemTemplate = new DataTemplate(typeof(ObjectsLocation)); Location_List.ItemsSource = locationList; overlayLocation.Focus(); }