Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

scale animation issue

$
0
0

Hi, I do simple animation for custom tree item element. Problem is in a part of scale animation. Here the code describing style.

<Style.Triggers><EventTrigger RoutedEvent="TreeViewItem.Loaded"><BeginStoryboard><Storyboard><DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)"><EasingDoubleKeyFrame KeyTime="0" Value="0.5"/><EasingDoubleKeyFrame KeyTime="0:1:5" Value="1"/></DoubleAnimationUsingKeyFrames><DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)"><EasingDoubleKeyFrame KeyTime="0" Value="0.5"/><EasingDoubleKeyFrame KeyTime="0:1:5" Value="1"/></DoubleAnimationUsingKeyFrames></Storyboard></BeginStoryboard></EventTrigger></Style.Triggers>

And then exception is occur: Property "[Unknown]" didnt point to DependencyObject in path "(0).(1)[0].(2)".

Animated tree view item consist of the following objects: labels, paths, image.


Aleksey


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>