public MainWindow() { InitializeComponent(); WindowInteropHelper helper = new WindowInteropHelper(this); WindowUtils.SetWindowPos( helper.Handle, (IntPtr)SpecialWindowHandles.HWND_TOP, 0, 0, 0, 0, SetWindowPosFlags.SWP_NOMOVE | SetWindowPosFlags.SWP_NOSIZE); }
private void Window_SourceInitialized(object sender, EventArgs e) { WindowUtils.AddExStyle(this, WindowUtils.WS_EX_NOACTIVATE); }