/// <summary>
        /// Creates a side window based on customization options from ReaderControl
        /// </summary>
        /// <param name="readerControl">a ReaderControl that holds customization options </param>
        public void CreateSideWindow(ReaderControl readerControl)
        {
            if (readerControl.EnableOutlineTreeControl)
            {
                OutlineTreeControl outlineTree = new OutlineTreeControl();
                this.OutlineTabItem.Content    = outlineTree;
                this.OutlineTabItem.Visibility = Visibility.Visible;
            }

            if (readerControl.EnableThumbnailListControl)
            {
                ThumbnailsControl thumbnailViewer = new ThumbnailsControl()
                {
                    Background  = new SolidColorBrush(Colors.White),
                    Foreground  = new SolidColorBrush(Colors.Black),
                    ScaleFactor = 1,
                };

                this.ThumbnailTabItem.Content    = thumbnailViewer;
                this.ThumbnailTabItem.Visibility = Visibility.Visible;

                if (!readerControl.EnableOutlineTreeControl)
                {
                    this.ThumbnailTabItem.IsSelected = true;
                }
            }

            if (readerControl.EnableFullTextSearchControl)
            {
                SearchPanelControl searchPanel = new SearchPanelControl();
                this.SearchTabItem.Visibility = Visibility.Visible;
                this.SearchTabItem.Content    = searchPanel;
                //FullTextSearchControl wholeDocumentViewerControl = new FullTextSearchControl();
                //this.SearchTabItem.Visibility = Visibility.Visible;
                //this.SearchTabItem.Content = wholeDocumentViewerControl;
            }

            if (readerControl.EnableAnnotationWindowControl)
            {
                var annotationControl = new AnnotationWindowControl();

                this.AnnotationTabItem.Visibility = Visibility.Visible;
                this.AnnotationTabItem.Content    = annotationControl;
            }
        }
        /// <summary>
        /// Creates a side window based on customization options from ReaderControl
        /// </summary>
        /// <param name="readerControl">a ReaderControl that holds customization options </param>
        public void CreateSideWindow(ReaderControl readerControl)
        {
            if (readerControl.EnableOutlineTreeControl)
            {
                OutlineTreeControl outlineTree = new OutlineTreeControl();
                this.OutlineTabItem.Content = outlineTree;
                this.OutlineTabItem.Visibility = Visibility.Visible;
            }

            if (readerControl.EnableThumbnailListControl)
            {
                ThumbnailsControl thumbnailViewer = new ThumbnailsControl()
                {
                    Background = new SolidColorBrush(Colors.White),
                    Foreground = new SolidColorBrush(Colors.Black),
                    ScaleFactor = 1,
                };

                this.ThumbnailTabItem.Content = thumbnailViewer;
                this.ThumbnailTabItem.Visibility = Visibility.Visible;

                if (!readerControl.EnableOutlineTreeControl)
                    this.ThumbnailTabItem.IsSelected = true;
            }

            if (readerControl.EnableFullTextSearchControl)
            {
                SearchPanelControl searchPanel = new SearchPanelControl();
                this.SearchTabItem.Visibility = Visibility.Visible;
                this.SearchTabItem.Content = searchPanel;
                //FullTextSearchControl wholeDocumentViewerControl = new FullTextSearchControl();
                //this.SearchTabItem.Visibility = Visibility.Visible;
                //this.SearchTabItem.Content = wholeDocumentViewerControl;
            }

            if (readerControl.EnableAnnotationWindowControl)
            {
                var annotationControl = new AnnotationWindowControl();

                this.AnnotationTabItem.Visibility = Visibility.Visible;
                this.AnnotationTabItem.Content = annotationControl;
            }
        }