Ejemplo n.º 1
0
        void NearestButton_Clicked(object sender, EventArgs e)
        {
            //runtime
            var nearestView = new NearestView(this);

            mainLayout.Children.Add(nearestView);
        }
        void PlaceListView_ItemTapped(object sender, ItemTappedEventArgs e)
        {
            searchEntry.Unfocus();

            var place    = e.Item as Result;
            var position = new Position(place.geometry.location.lat, place.geometry.location.lng);

            var nearestView = new NearestView(position, this);

            nearestView.SetValue(Grid.RowSpanProperty, 2);
            mainLayout.Children.Add(nearestView);

            placeListView.SelectedItem = null;
        }