示例#1
0
 public ImageBrowserControl()
 {
     this.InitializeComponent();
     _selectionBox = null;
     _content.MouseLeftButtonDown += OnMouseLeftButtonDown;
     _content.MouseMove           += OnMouseMove;
     _content.MouseLeftButtonUp   += OnMouseLeftButtonUp;
 }
示例#2
0
 public void ShowHighlights(ZoneTree tree, IEnumerable <HighlightSpec> highlightSpecs)
 {
     this.ClearHighlights();
     foreach (var spec in highlightSpecs)
     {
         var highlight = new WpfHighlight(spec);
         _highlightCanvas.Children.Add(highlight);
     }
 }
示例#3
0
 protected override void RemoveSelectionBox()
 {
     _highlightCanvas.Children.Remove(_selectionBox);
     _selectionBox = null;
 }
示例#4
0
 protected override void CreateSelectionBox(Rectangle boundingBox)
 {
     _selectionBox = new WpfHighlight(_selectionBoxStyle, boundingBox);
     _highlightCanvas.Children.Add(_selectionBox);
 }