1
我们的应用程序在启动时没有出现在任务栏中,因为它是通过ShowDialog
显示的WPF窗口,但未使用System.Windows.Application
。是否可以在任务栏中显示该应用程序?在任务栏启动时显示wpf应用程序,而不使用System.Windows.Application
var spl = new SplashScreen(); // Nothing in the taskbar, but it should...
spl.ShowDialog();
// initial application
spl.Close();
var app = new App();
app.Run(mainWindow); // Now we have some thing in the taskbar
非常感谢。
答案很简单,我没有明白:'splash.ShowInTaskbar = true;'这就是全部。如果你把这个添加到你的答案中,我会接受它。所以这个问题将被关闭。 – BendEg