/// <summary>
        /// Creates a SearchPanel and installs it to the TextArea.
        /// </summary>
        public static SearchPanel Install(TextArea textArea)
        {
            if (textArea == null)
            {
                throw new ArgumentNullException("textArea");
            }
            SearchPanel panel = new SearchPanel();

            panel.AttachInternal(textArea);
            panel.handler = new SearchInputHandler(textArea, panel);
            textArea.DefaultInputHandler.NestedInputHandlers.Add(panel.handler);
            return(panel);
        }
 internal SearchInputHandler(TextArea textArea, SearchPanel panel)
     : base(textArea)
 {
     RegisterCommands(this.CommandBindings);
     this.panel = panel;
 }