Пример #1
0
        void UpdateTargetProperty( )
        {
            if (targetPropertyInfo == null && !propertyInfoChecked)
            {
                target         = Storyboard.GetTarget(this);
                targetProperty = Storyboard.GetTargetProperty(this);

                if (target != null && targetProperty != null)
                {
                    targetPropertyInfo = target
                                         .GetType( )
                                         .GetProperty(
                        targetProperty);
                }
                propertyInfoChecked = true;
            }
            if (targetPropertyInfo != null)
            {
                targetPropertyInfo.SetValue(
                    target, GetCurrentValue( ), null);
            }
        }