Reputation: 1117
I'm writing a regular class library in .NET Framework (Windows). When someone is calling a certain method in that class library, I want to move the caller's main window (if any) on top of other application's windows (although not permanently).
At first I assumed I could use the Application class to get the main window (Application.Current.MainWindow) but the Application class seems not available...?
Is there a way to do what I want without resorting to native P/Invoke calls? If not - what can be done with P/Invoke when all I know is my current thread?
Upvotes: 0
Views: 195