void ReleaseDesignerOutlets() { if (AnimationView != null) { AnimationView.Dispose(); AnimationView = null; } if (Slider != null) { Slider.Dispose(); Slider = null; } }