A simple solution, not perfect, but it works, every time the charms panel is activated, your application is turned off, so activate it immediately and the charms panel will disappear. add this to your App.xaml.cs
DispatcherTimer timer = new System.Windows.Threading.DispatcherTimer(); public App() { this.Deactivated += App_Deactivated; this.Activated += App_Activated; timer.Tick += delegate { Application.Current.MainWindow.Activate(); }; timer.Interval = new TimeSpan(0, 0, 0, 0, 10); } void App_Activated(object sender, EventArgs e) { timer.Stop(); } void App_Deactivated(object sender, EventArgs e) { timer.Start(); }
source share