private void StartAnimationIfAPIPresent(UIElement sender, Windows.UI.Composition.CompositionAnimation animation) { if (ApiInformation.IsApiContractPresent("Windows.Foundation.UniversalApiContract", 7)) { (sender as UIElement).StartAnimation(animation); } }
internal override void StartAnimationCore(string propertyName, CompositionAnimation animation) { base.StartAnimationCore(propertyName, animation); switch (animation) { case KeyFrameAnimation kfa: AnimateKeyFrameAnimation(propertyName, kfa); break; } }
internal virtual void StartAnimationCore(string propertyName, CompositionAnimation animation) { }
public void StartAnimation(string propertyName, CompositionAnimation animation) { StartAnimationCore(propertyName, animation); }