In my add-in I allow the user to select where their output feature class will be saved. When I put my code inside the suggested QueuedTask.Run and FrameworkApplication.Current.Dispatcher.Invoke it will just sit there and spin. If I take the code outside of this then it works fine. What is the proper way to use SaveItemDialog?
QueuedTask.Run(
Sub()
FrameworkApplication.Current.Dispatcher.Invoke(
Sub()
Dim savFeatClassDialog As New SaveItemDialog
savFeatClassDialog.Title = "Output Feature Class..."
savFeatClassDialog.InitialLocation = Project.Current.DefaultGeodatabasePath
savFeatClassDialog.OverwritePrompt = True
savFeatClassDialog.Filter = ItemFilters.featureClasses_all
Dim IsResOk As Boolean? = savFeatClassDialog.ShowDialog
If IsResOk Then
txtOutput.Text = savFeatClassDialog.FilePath
End If
End Sub)
End Sub)