2
我有一个窗口,使用FileSystemWatcher在创建新文件时弹出。我怎样才能实际显示/成为前景窗口? MakeKeyAndOrderFront不会让它弹出其他窗口的前面。带着窗口前面Xamarin.Mac
我有一个窗口,使用FileSystemWatcher在创建新文件时弹出。我怎样才能实际显示/成为前景窗口? MakeKeyAndOrderFront不会让它弹出其他窗口的前面。带着窗口前面Xamarin.Mac
为了使我的窗口出现前,中心和重点突出我曾与以下成功:
NSApplication app = NSApplication.SharedApplication;
app.ActivateIgnoringOtherApps(true);
var win = new PreferencesWindowController().Window;
win.Center();
win.MakeKeyAndOrderFront(this);