'{DependencyProperty.UnsetValue}' is not a valid value for property 'FocusVisualStyle'
问题 I have a weird error I'm trying to debug with no luck. I have subclassed hwndhost showing some content, I have the following function in that class to set to fullscreen: private void SetFullScreen(bool enable) { if (enable) { fs = new Window(); fs.ResizeMode = ResizeMode.NoResize; fs.WindowState = System.Windows.WindowState.Maximized; fs.WindowStyle = System.Windows.WindowStyle.None; fs.Topmost = true; fs.PreviewKeyDown += delegate(object sender, KeyEventArgs e) { if (e.Key==Key.Escape)