public System.Windows.UIElement Create(IPeekSession session, IPeekResultScrollState state)
        {
            _textView = (IWpfTextView)session.TextView;
            _textView.BackgroundBrushChanged += OnTextViewBackgroundBrushChanged;

            _textView.LayoutChanged += ContainingTextView_LayoutChanged;

            _control = new F1PeekPresentationControl();
            _control.DataContext = this;

            _browser = new System.Windows.Forms.WebBrowser();
            _browser.Url = _helpUri;
            _control.WinFormsHost.Child = _browser;

            _browser.DocumentCompleted += Browser_DocumentCompleted;
            _browser.Navigating += Browser_Navigating;

            return _control;
        }
Exemple #2
0
        public System.Windows.UIElement Create(IPeekSession session, IPeekResultScrollState state)
        {
            _textView = (IWpfTextView)session.TextView;
            _textView.BackgroundBrushChanged += OnTextViewBackgroundBrushChanged;

            _textView.LayoutChanged += ContainingTextView_LayoutChanged;

            _control             = new F1PeekPresentationControl();
            _control.DataContext = this;

            _browser     = new System.Windows.Forms.WebBrowser();
            _browser.Url = _helpUri;
            _control.WinFormsHost.Child = _browser;

            _browser.DocumentCompleted += Browser_DocumentCompleted;
            _browser.Navigating        += Browser_Navigating;

            return(_control);
        }