WinUI3 : application lifecycle events in desktop app

Harshithraj1871 1,681 Reputation points
2022-12-22T06:30:20.833+00:00

Hi,

I was trying go get different application events like, App minimized, maximized, when app goes to background and comes to foreground for winui3 desktop app.

I tried searching for this events, but I was only able to find app launched and window closed but I was not able to find proper documentation other than this.

It would be of great help if you cloud help me by pointing to the right documentation.

thank you

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
842 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,886 questions
0 comments No comments
{count} votes

Accepted answer
  1. Castorix31 88,051 Reputation points
    2022-12-22T07:37:40.26+00:00

    Some events have been added like microsoft.ui.windowing.appwindowchangedeventargs,
    otherwise WinUI 3 apps receive same messages as normal Win32 desktop apps, like WM_SYSCOMMAND and others, that can be intercepted with SetWindowSubclass)


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.