private static object CoerceAnimationTemplateProperty(DependencyObject d, object value)
        {
            AnimationTemplate animTemplate = null;

            if (value is AnimationTemplate at)
            {
                if (DesignerProperties.GetIsInDesignMode(d))
                {
                    return(at);
                }

                else
                {
                    //animTemplate = at.Clone() as AnimationTemplate;
                    //animTemplate.Freeze();
                }
            }

            return(animTemplate);
        }
 public static void SetTemplate(Timeline obj, AnimationTemplate value)
 {
     obj.SetValue(TemplateProperty, value);
 }
        protected override Freezable CreateInstanceCore()
        {
            var at = new AnimationTemplate(Setters);

            return(at);
        }
Exemple #4
0
 public AnimationTemplateExtension(AnimationTemplate template)
 {
     Template = template;
 }