예제 #1
0
        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);
        }
예제 #2
0
 private void Window_SourceInitialized(object sender, EventArgs e)
 {
     WindowUtils.AddExStyle(this, WindowUtils.WS_EX_NOACTIVATE);
 }