ArcGISRuntime.WPF.Samples.DisplayDeviceLocation.DisplayDeviceLocation.OnStopButtonClicked C# (CSharp) Method

OnStopButtonClicked() private method

private OnStopButtonClicked ( object sender, RoutedEventArgs e ) : void
sender object
e System.Windows.RoutedEventArgs
return void
        private void OnStopButtonClicked(object sender, RoutedEventArgs e)
        {
            //TODO Remove this IsStarted check https://github.com/Esri/arcgis-runtime-samples-xamarin/issues/182
            if (MyMapView.LocationDisplay.IsEnabled)
                MyMapView.LocationDisplay.IsEnabled = false;
        }