Example #1
0
        protected override void OnSourceInitialized(EventArgs e)
        {
            base.OnSourceInitialized(e);

            var helper = new WindowInteropHelper(this);

            MiscTools.SetWindowLong(helper.Handle, MiscTools.GwlExstyle,
                                    MiscTools.GetWindowLong(helper.Handle, MiscTools.GwlExstyle) | 0x08000000);
        }
Example #2
0
        protected override void OnSourceInitialized(EventArgs e)
        {
            base.OnSourceInitialized(e);

            //Set the window style to noactivate.
            var helper = new WindowInteropHelper(this);

            MiscTools.SetWindowLong(helper.Handle, MiscTools.GwlExstyle,
                                    MiscTools.GetWindowLong(helper.Handle, MiscTools.GwlExstyle) | 0x00000080 | 0x00000020);
        }