SaveItemDialog saveMapFileDialog = new SaveItemDialog() { Title = "Save Map File", InitialLocation = @"C:\Data\NewYork\Counties\Maps", DefaultExt = @"mapx", Filter = ItemFilters.maps_all, OverwritePrompt = true }; bool? result = saveMapFileDialog.ShowDialog(); if (result == true) { ArcGIS.Desktop.Framework.Dialogs.MessageBox.Show("Returned file name: " + saveMapFileDialog.FilePath); }
Target Platforms: Windows 10, Windows 8.1, Windows 7