Пример #1
0
        public BugEditor()
        {
            instance = this;
            InitializeComponent();
            m_ToolItems = new IToolBarItem[] { btnText, btnDraw };

            DrawingAttributes inkDA = new DrawingAttributes();

            inkDA.Width  = 3;
            inkDA.Height = 3;
            inkDA.Color  = Colors.Red;
            this.canvas.DefaultDrawingAttributes = inkDA;

            this.canvas.IsHitTestVisible = false;
            this.canvas.StrokeCollected += canvas_StrokeCollected;

            foreach (FrameworkElement ctrl in m_ToolItems)
            {
                ctrl.MouseDown += ctrl_MouseDown;
            }
        }
Пример #2
0
 public BugEditorWindow()
 {
     Editor = new BugEditor();
     Editor.LoadScreenPictures();
     this.Content = this.Editor;
 }