예제 #1
0
 public WebBrowserControl()
 {
     this.InitializeComponent();
     _renderTimeout             = new Configuration().RENDER_TIME_OUT;
     _timer                     = this.CreateTimer();
     _eventCaptureSurfaceStyle  = new HighlightStyleFactory().CreateEventCaptureSurfaceStyle();
     _eventCaptureSurface       = null;
     _selectionBox              = null;
     _wpfControl.LoadCompleted += WpfControl_LoadCompleted;
 }
예제 #2
0
        public WpfHighlight(HighlightStyle style, Rectangle boundingBox)
        {
            var backgroundBrush = new SolidColorBrush(style.BackgroundColor);

            backgroundBrush.Opacity = style.BackgroundOpacity;
            this.Background         = backgroundBrush;
            this.BorderBrush        = new SolidColorBrush(style.BorderColor);
            this.BorderThickness    = new Thickness(style.BorderWidth);
            this.SetBoundingBox(boundingBox);
        }
예제 #3
0
 public HighlightSpec(HighlightStyle style, Rectangle boundingBox)
 {
     this.Style       = style;
     this.BoundingBox = boundingBox;
 }
예제 #4
0
 public BrowserControl()
 {
     _selectionBoxStyle = new HighlightStyleFactory().CreateSelectionBoxStyle();
     _mouseDownPoint    = null;
 }