public override void ViewWillDisappear(bool animated)
 {
     // This is called when the popover closes for any reason.
     ConfigureOverrides();
     FinishedConfiguring?.Invoke();
     base.ViewWillDisappear(animated);
 }
        private void TakeMapOffline_Clicked(object sender, DialogClickEventArgs e)
        {
            // Configure the overrides using helper methods.
            ConfigureTileLayerOverrides(_overrides);
            ConfigureLayerExclusion(_overrides);
            CropWaterPipes(_overrides);
            ApplyFeatureFilter(_overrides);

            // Dismiss the dialog.
            Dismiss();

            // Raise the event.
            FinishedConfiguring?.Invoke(this, null);
        }