private void StartAnimationIfAPIPresent(UIElement sender, Windows.UI.Composition.CompositionAnimation animation)
 {
     if (ApiInformation.IsApiContractPresent("Windows.Foundation.UniversalApiContract", 7))
     {
         (sender as UIElement).StartAnimation(animation);
     }
 }
Exemplo n.º 2
0
        internal override void StartAnimationCore(string propertyName, CompositionAnimation animation)
        {
            base.StartAnimationCore(propertyName, animation);

            switch (animation)
            {
            case KeyFrameAnimation kfa:
                AnimateKeyFrameAnimation(propertyName, kfa);
                break;
            }
        }
Exemplo n.º 3
0
 internal virtual void StartAnimationCore(string propertyName, CompositionAnimation animation)
 {
 }
Exemplo n.º 4
0
 public void StartAnimation(string propertyName, CompositionAnimation animation)
 {
     StartAnimationCore(propertyName, animation);
 }