Skip to content

Suggestion: Window.Activate should call SetForegroundWindow or provide a separate SetAsForeground method which calls it #6357

@benstevens48

Description

@benstevens48

When creating a single instance app, after redirection it is necessary to call the Win32 API SetForegroundWindow as well as Window.Activate to show the redirected-to window. See related issue - #1439. It should not be necessary to do a DllImport and call a Win32 API. WindowsAppSDK should provide this functionality. Either Window.Activate should call it by default or provide a separate method on the Window or AppWindow class called SetAsForeground or similar which calls SetForegroundWindow.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions