ArcGISRuntime.UWP.Samples.AnalyzeHotspots.AnalyzeHotspots.ShowBusyOverlay C# (CSharp) Method

ShowBusyOverlay() private method

private ShowBusyOverlay ( bool visibility = true ) : void
visibility bool
return void
        private void ShowBusyOverlay(bool visibility = true)
        {
            // Function to toggle the visibility of interaction with the GUI for the user to 
            // specify dates for the hot spot analysis. When the analysis is running, the GUI
            // for changing the dates is 'grayed-out' and the progress bar with a cancel 
            // button (aka. busyOverlay object) becomes active.

            if (visibility)
            {
                // The geoprocessing task is processing. The busyOverly is present.
                busyOverlay.Visibility = Visibility.Visible;
                progress.IsIndeterminate = true;
            }
            else
            {
                // The user can interact with the date pickers. The busyOverlay is invisible.
                busyOverlay.Visibility = Visibility.Collapsed;
                progress.IsIndeterminate = false;
            }
        }
    }