using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Linq; using System.Threading.Tasks; using System.Windows; using Hardcodet.Wpf.TaskbarNotification; namespace WinUI { /// /// Interaction logic for App.xaml /// public partial class App : Application { private TaskbarIcon tb; private void InitApplication() { tb = (TaskbarIcon)FindResource("NotifyIcon"); tb.Visibility = Visibility.Visible; } } }