I am trying to configure BrowseProjectFilter of OpenItemDialog so only line shapefiles can be selected. Here is the code I am using:
BrowseProjectFilter browseFilter = BrowseProjectFilter.GetFilter("esri_browseDialogFilters_shapefiles");
OpenItemDialog browseDialog = new OpenItemDialog
{
Title = "Select line shapefile",
MultiSelect = false,
BrowseFilter = browseFilter
};
browseDialog.ShowDialog();
This returns shapefiles of all geometry types. Is there a way to configure the filter to display shapefiles with line geometry type only? I have tried applying the AddCanBeTypeId below but it does not make any difference.
browseFilter.AddCanBeTypeId("shapefile_line");
I am using Pro 2.6 SDK. Thanks!