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; } }
public BugEditorWindow() { Editor = new BugEditor(); Editor.LoadScreenPictures(); this.Content = this.Editor; }