/// <summary> /// Method draws element. /// </summary> /// <param name="context">Drawing context where element shoul be drawn.</param> public void Draw(GanttItemElementDrawingContext context) { Debug.Assert(_route != null); StopDrawer.StopInfo stopInfo = new StopDrawer.StopInfo(); stopInfo.Stop = _stop; stopInfo.Route = _route; StopDrawer.DrawStop(stopInfo, context); // Draw glyph over stop element. _DrawDraggedOverGlyph(_stop, context); }