AnyPlace.MainPage.RouteLLS_SelectionChanged C# (CSharp) Method

RouteLLS_SelectionChanged() private method

private RouteLLS_SelectionChanged ( object sender, System.Windows.Controls.SelectionChangedEventArgs e ) : void
sender object
e System.Windows.Controls.SelectionChangedEventArgs
return void
        void RouteLLS_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            // If selected item is null (no selection) do nothing
            if (RouteLLS.SelectedItem == null)
                return;

            MoveViewWindow(-70);

            var direction = RouteLLS.SelectedItem as DirectionsList;

            if (direction != null) Mymap.SetView(direction.geocoordinate, 20, MapAnimationKind.Parabolic);

            // Reset selected item to null (no selection)
            RouteLLS.SelectedItem = null;
        }
MainPage