public virtual void onMouseClick(object sender, MouseButtonEventArgs e){ GraphicObject p = Parent as GraphicObject; if (p != null) p.onMouseClick(sender,e); MouseClick.Raise (this, e); }