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

c++ - Do gcc's __float128 floating point numbers take the current rounding mode into account? -

java - the value of local variable is not used -