DoubleAnimation on RotateTransform.Angle not working on Unreal
Posted: 14 Jun 2022, 13:30
Hello,
In this xaml, I try to rotate an image when control is loaded
It works in Blend, but when I import it to Unreal, it shows this error:
In this xaml, I try to rotate an image when control is loaded
Code: Select all
<ControlTemplate x:Key="PlayerInfoPanel" TargetType="{x:Type ContentControl}">
<ControlTemplate.Resources>
<Storyboard x:Key="EndlessRotate">
<DoubleAnimation
Storyboard.TargetProperty="(RenderTransform).(RotateTransform.Angle)" Storyboard.TargetName="Loading"
To="360" Duration="0:0:1.5" RepeatBehavior="Forever"/>
</Storyboard>
</ControlTemplate.Resources>
<Grid>
<Image x:Name="Loading" Visibility="Visible"
Source="Dummy_Loading.png" Width="40" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,14,0" RenderTransformOrigin="0.5,0.5" >
<Image.RenderTransform>
<RotateTransform/>
</Image.RenderTransform>
</Image></Grid>
<ControlTemplate.Triggers>
<EventTrigger RoutedEvent="Loaded">
<BeginStoryboard Storyboard="{StaticResource EndlessRotate}" x:Name="AnimationBeginStoryboard"/>
</EventTrigger>
</ControlTemplate.Triggers>Can you tell me what is wrong here?Unable to convert '(RenderTransform).(RotateTransform.Angle)' to a valid value for property DoubleAnimation.TargetProperty.
LogNoesis: Warning: Target property not set in timeline