Skip to content

A WinUI3 application that has a notify icon in the system tray. Once the icon in the notification has been clicked, a full WinUI3's Window is displayed.

License

Notifications You must be signed in to change notification settings

smourier/WinUI3NotifyIcon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WinUI3NotifyIcon

A WinUI3 application that has a notify icon in the system tray. Once the icon in the notification has been clicked, a full WinUI3's Window is displayed. The project targets .NET 8 and higher and is AOT compatible.

For example, this consider this window's XAML:

<Window
    x:Class="WinUI3NotifyIcon.NotifyIconWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    Title="NotifyIconWindow">

    <StackPanel HorizontalAlignment="Center" Orientation="Vertical">
        <AppBarButton
            Click="Open_Click"
            Icon="OpenPane"
            Label="Open App" />
        <AppBarSeparator />
        <AppBarButton
            Click="Quit_Click"
            Icon="ClosePane"
            Label="Quit" />
    </StackPanel>

</Window>

The app will show an icon in the notification area, like this:

image

which will, once clicked, display the window:

image

About

A WinUI3 application that has a notify icon in the system tray. Once the icon in the notification has been clicked, a full WinUI3's Window is displayed.

Topics

Resources

License

Stars

Watchers

Forks

Languages