02-13-2017 07:49 AM
I'm creating a custom modal command, with WPF, for GeoMedia.
When I have the command opened and if I open a different application, for instance a browser window, and try to go back to GeoMedia, my custom command isn't available anymore and GeoMedia gets stucked.
I need to kill the process in task manager and if i do that, all the work that wasn't saved, will be lost.
Any suggestions to overcome this situation?
Solved! Go to Solution.
02-14-2017 01:11 AM
I tried a workarround that solved my problem.
I overrided the OnActivated event so that I can set the window Topmost property to true and then immediatly set to false again:
protected override void OnActivated(EventArgs e)
this.Topmost = true;
this.Topmost = false;