c# - Bring window to front with Xamarin.Mac -


i have window uses filesystemwatcher pop when new file created. how can display / become foreground window? makekeyandorderfront doesn't make pop infront of other windows.

to make window appear front, centered , focused have had success following:

nsapplication app = nsapplication.sharedapplication; app.activateignoringotherapps(true);  var win = new preferenceswindowcontroller().window; win.center(); win.makekeyandorderfront(this); 

Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -

php - $params->set Array between square bracket -