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

Regex find and replace between <div class="customclass"> and </div> tag -

jpa - Passing entitymanager from reflection method -