/// <summary> /// Called by a TimelineElement once it has finished being dragged to a new location /// </summary> /// <param name="te">The TimelineElement in question</param> public void RefreshElement(TimelineElement te) { te.SetSeconds((int)((Canvas.GetLeft(te) + 2) * (endSeconds - startSeconds) / pixelDistance) + startSeconds); }