Exemplo n.º 1
0
        private static string GetDynamicPropertyName(DependencyProperty property)
        {
            var propertyName        = property.GetName();
            var count               = DynamicPropertyNames.GetValueOrDefault(propertyName);
            var dynamicPropertyName = $"{propertyName}_dyn{count}";

            DynamicPropertyNames[propertyName] = count + 1;

            return(dynamicPropertyName);
        }
Exemplo n.º 2
0
 void BeginStoryboard(Storyboard storyboard, ProcessInfo info, DependencyProperty property)
 {
     Storyboard.SetTargetProperty(storyboard, new PropertyPath(property.GetName()));
     Storyboard.SetTarget(storyboard, GetAnimationElement(info));
     storyboard.Begin();
 }
Exemplo n.º 3
0
 public static string GetQualifiedName(this DependencyProperty dependencyProperty)
 {
     return(string.Concat(dependencyProperty.GetDeclaringTypeName(), ".", dependencyProperty.GetName()));
 }