我是一个新手,从 http://www.codeproject.com/Articles/199014/Page-Transition-Control-for-WPF看这个例子
它有很多这样的故事板对象
<DoubleAnimation Storyboard.TargetProperty="(RenderTransform).(TransformGroup.Children)[1].(SkewTransform.AngleX)" To="100" Duration="0:0:.75" AccelerationRatio=".9" />
和这样的 TransformGroup
`<ScaleTransform
ScaleX="1" ScaleY="1"
CenterX="{Binding RelativeSource={RelativeSource AncestorType=Grid, Mode=FindAncestor}, Path=ActualWidth, Converter={StaticResource centerConverter}}"
CenterY="{Binding RelativeSource={RelativeSource AncestorType=Grid, Mode=FindAncestor}, Path=ActualHeight, Converter={StaticResource centerConverter}}"
/>
<SkewTransform
AngleX="0"
AngleY="0"
CenterX="{Binding RelativeSource={RelativeSource AncestorType=Grid, Mode=FindAncestor}, Path=ActualWidth, Converter={StaticResource centerConverter}}"
CenterY="{Binding RelativeSource={RelativeSource AncestorType=Grid, Mode=FindAncestor}, Path=ActualHeight, Converter={StaticResource centerConverter}}"
/>
<RotateTransform
Angle="0"
CenterX="{Binding RelativeSource={RelativeSource AncestorType=Grid, Mode=FindAncestor}, Path=ActualWidth, Converter={StaticResource centerConverter}}"
CenterY="{Binding RelativeSource={RelativeSource AncestorType=Grid, Mode=FindAncestor}, Path=ActualHeight, Converter={StaticResource centerConverter}}"
/>
<TranslateTransform X="0" Y="0" />`
有人可以向我解释它是如何工作的,这太令人困惑了!我花了一整天的时间阅读 Xaml 和 wpf 书籍,但我仍然不明白。当我尝试通过简化代码来理解时,我不断收到如下错误:'[Unknown]' 属性不指向路径'(RenderTransform).(0)[1].(1)' 中的 DependencyObject
WPF真的那么难吗!?!?!?