Hi,
At 2.5 still having issues getting dialogs to show correctly when used from within QueuedTask.Run.
The Coordinate System Dialog is the one from the snippet collection
This works from a button
protected override void OnClick()
{
new SaveItemDialog().ShowDialog();
new CoordinateSystemDialog().ShowDialog();
}
So does this
protected override void OnClick()
{
FrameworkApplication.Current.Dispatcher.Invoke(() => new SaveItemDialog().ShowDialog());
FrameworkApplication.Current.Dispatcher.Invoke(() => { new CoordinateSystemDialog().ShowDialog(); });
}
But this does not.
protected override void OnClick()
{
QueuedTask.Run(
() =>
{
FrameworkApplication.Current.Dispatcher.Invoke(() => new SaveItemDialog().ShowDialog());
FrameworkApplication.Current.Dispatcher.Invoke(() => { new CoordinateSystemDialog().ShowDialog(); });
});
}
The coordinate system dialog never completes loading. The Open/Save Dialogs do not show the contents of a fgdb. If I run the command again in the same session then the Open/Save Dialogs show the contents of a fgdb
Is there a workaround whilst it's being fixed?
Thanks,
Adam