public HtmlPageEditorControl()
        {
            this.InitializeComponent();

            this.WhenActivated(disposable =>
            {
                commandBar.ViewModel = (PageEditorCommandBarViewModel)ViewModel.CommandBarViewModel;

                this.Bind(ViewModel,
                          vm => vm.Content,
                          view => view.PageEditorTextBox.Text)
                .DisposeWith(disposable);

                Pivot.Events().SelectionChanged
                .Subscribe(_ => ViewModel.CurrentPivotItem = SelectedItemToPivotItemConverter(Pivot.SelectedItem))
                .DisposeWith(disposable);

                this.WhenAnyValue(x => x.ViewModel.CurrentPivotItem)
                .Subscribe(OnPivotSelectionChanged)
                .DisposeWith(disposable);

                /*
                 * Preview_WebView.Events().NavigationStarting
                 *      .Select(x => x.args)
                 *      .Subscribe(ShowPreviewLinksAsNotifications)
                 *      .DisposeWith(disposable);
                 */
            });
        }
        public TextPageEditorControl()
        {
            this.InitializeComponent();

            this.WhenActivated(disposable =>
            {
                commandBar.ViewModel = (PageEditorCommandBarViewModel)ViewModel.CommandBarViewModel;

                this.Bind(ViewModel,
                          vm => vm.Content,
                          view => view.PageEditorTextBox.Text)
                .DisposeWith(disposable);

                Pivot.Events().SelectionChanged
                .Subscribe(_ => ViewModel.CurrentPivotItem = SelectedItemToPivotItemConverter(Pivot.SelectedItem))
                .DisposeWith(disposable);

                this.WhenAnyValue(x => x.ViewModel.CurrentPivotItem).Subscribe(OnPivotSelectionChanged)
                .DisposeWith(disposable);
            });
        }