Hidding a WPF application from Task Manager - Error
===

Hi I am trying to hide a WPF application from Task Manager. 

I use the code below. It works great in Windows Forms, but when I implement it into WPF it gave me this error:
"**CustomWindowStyle.MainWindow.CreateParams': no suitable method found to override**"

Code:

    protected override CreateParams CreateParams // <---- here is the error
    {
        get
        {
            var cp = base.CreateParams;
            cp.ExStyle |= 0x80;  // Turn on WS_EX_TOOLWINDOW
            return cp;
        }
    }

**What I must to change in code to work?**
Thank you in advance!