WPF OnRender doesn't work

I write a control that derived a class from the FrameworkElement and overrode its OnRender method. Inside this method, there is a DrawLine animation by providing an AnimationClock instance to