protected override void OnCreateResources() { // We don't need to free any resources because the base class will // call OnFreeResources if necessary before calling this method. this.textFormat = this.writeFactory.CreateTextFormat("Arial", 10); base.OnCreateResources(); // Call this last to start the animation }