DrawingAreaにマウスで画像を描きたい。DrawingAreaで現在のマウス座標を知ることはできますが、マウスボタンが押されたことをどのように知ることができますか?私の現在のコードは次のようになります:
protected void OnPaintedPicture1DrawingareaMotionNotifyEvent (object o, MotionNotifyEventArgs args)
{
EventMotion currentEventMotion = (args.Args[0] as EventMotion);
matchingPercentageForPicture1AndSample1_entry.Text+=String.Format("x='{0}'; y='{1}';\t", currentEventMotion.X, currentEventMotion.Y);
}