public override Nullable<bool> ShowDialog()
Public Overrides NotOverridable Function ShowDialog() As Nullable(Of Boolean)
Return Value
A boolean indicating if the Browse dialog was dismissed by pressing OK or Cancel.
public override Nullable<bool> ShowDialog()
Public Overrides NotOverridable Function ShowDialog() As Nullable(Of Boolean)
OpenItemDialog addToProjectDialog = new OpenItemDialog(); addToProjectDialog.Title = "Add To Project"; addToProjectDialog.InitialLocation = @"C:\Data\NewYork\Counties\Maps"; addToProjectDialog.MultiSelect = true; addToProjectDialog.Filter = ItemFilters.Composite_Maps_Import; bool? ok = addToMapDialog.ShowDialog(); if (ok == true) { IEnumerable<Item> selectedItems = addToMapDialog.Items; foreach (Item selectedItem in selectedItems) MapFactory.Instance.CreateMapFromItem(selectedItem); }
Target Platforms: Windows 11, Windows 10