CustomCanvas.cs 422 B

123456789101112131415161718
  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.Automation.Peers;
  7. using System.Windows.Controls;
  8. namespace SketchAssistantWPF
  9. {
  10. public class CustomCanvas : Canvas
  11. {
  12. protected override AutomationPeer OnCreateAutomationPeer()
  13. {
  14. return new FrameworkElementAutomationPeer(this);
  15. }
  16. }
  17. }