MultipleSelectedRect.cs 974 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Windows.Media;
  7. namespace ComPDFKit.Tool.DrawTool
  8. {
  9. public partial class MultipleSelectedRect: DrawingVisual
  10. {
  11. protected DrawingContext drawDC { get; set; }
  12. /// <summary>
  13. /// 数据改变中事件
  14. /// </summary>
  15. public event EventHandler<SelectedAnnotData> MultipleDataChanging;
  16. /// <summary>
  17. /// 数据改变完成事件
  18. /// </summary>
  19. public event EventHandler<SelectedAnnotData> MultipleDataChanged;
  20. protected bool isHover = false;
  21. protected bool isSelected = false;
  22. protected SelectedType selectedType = SelectedType.None;
  23. public void SetIsHover(bool hover)
  24. {
  25. isHover = hover;
  26. }
  27. public void SetIsSelected(bool selected)
  28. {
  29. isSelected = selected;
  30. }
  31. }
  32. }