public UIElement Create(IPeekSession session, IPeekResultScrollState scrollState)
        {
            var view = new InlineCommentPeekView();

            view.DataContext = viewModel;
            return(view);
        }
Пример #2
0
 public UIElement Create(IPeekSession session, IPeekResultScrollState scrollState) {
   _tb = new TextBox {
     Text = _expandedTactic,
     Background = Brushes.AliceBlue,
     IsReadOnly = true,
     FontFamily = new FontFamily("Consolas"),
     FontSize = ExpectedFontSize,
     MinHeight = TextHeight
   };
   return _tb;
 }
Пример #3
0
 public UIElement Create(IPeekSession session, IPeekResultScrollState scrollState)
 {
     _tb = new TextBox {
         Text       = _expandedTactic,
         Background = Brushes.AliceBlue,
         IsReadOnly = true,
         FontFamily = new FontFamily("Consolas"),
         FontSize   = ExpectedFontSize,
         MinHeight  = TextHeight
     };
     return(_tb);
 }
Пример #4
0
        public UIElement Create(IPeekSession session, IPeekResultScrollState scrollState)
        {
            view             = new InlineCommentPeekView();
            view.DataContext = viewModel;

            // Report the desired size back to the peek view. Unfortunately the peek view
            // helpfully assigns this desired size to the control that also contains the tab at
            // the top of the peek view, so we need to put in a fudge factor. Using a const
            // value for the moment, as there's no easy way to get the size of the control.
            view.DesiredHeight.Subscribe(x => DesiredHeight = x + PeekBorders);

            return(view);
        }
Пример #5
0
 public UIElement Create(IPeekSession session, IPeekResultScrollState scrollState) {
   _session = session;
   DafnyClassifier.DafnyMenuPackage.TacnyMenuProxy.AddUpdaterForRot(_session, Recalculate);
   _tb = new TextBox {
     Text = _expandedTactic,
     Background = Brushes.AliceBlue,
     IsReadOnly = true,
     FontFamily = new FontFamily("Consolas"),
     FontSize = ExpectedFontSize,
     MinHeight = TextHeight
   };
   return _tb;
 }
Пример #6
0
 public UIElement Create(IPeekSession session, IPeekResultScrollState scrollState)
 {
     _session = session;
     DafnyClassifier.DafnyMenuPackage.TacnyMenuProxy.AddUpdaterForRot(_session, Recalculate);
     _tb = new TextBox {
         Text       = _expandedTactic,
         Background = Brushes.AliceBlue,
         IsReadOnly = true,
         FontFamily = new FontFamily("Consolas"),
         FontSize   = ExpectedFontSize,
         MinHeight  = TextHeight
     };
     return(_tb);
 }
Пример #7
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;
        }
Пример #8
0
        public System.Windows.UIElement Create(IPeekSession session, IPeekResultScrollState state)
        {
            _textView = (IWpfTextView)session.TextView;
            _textView.BackgroundBrushChanged += OnTextViewBackgroundBrushChanged;

            _textView.LayoutChanged += ContainingTextView_LayoutChanged;

            _control             = new UrlPeekPresentationControl();
            _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);
        }
 public void ScrollIntoView(IPeekResultScrollState scrollState)
 {
 }
Пример #10
0
#pragma warning restore 0067

        public void ScrollIntoView(IPeekResultScrollState state)
        {
        }