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