public FullscreenCommand(string name, MainWindow wnd, InputGesture inputGesture) : base(name, inputGesture) { this.wnd = wnd; this.wnd.PreviewKeyDown += wnd_PreviewKeyDown; this.fullscreenHandler = new FullscreenHandler(wnd); this.fullscreenHandler.FullscreenChanged += fullscreenHandler_FullscreenChanged; }