I want my text block to appear from the left and tranform to its position, but it doesn't work.
I tried this code, but the text isn't transforming from the left. What did I do wrong? I am not allowed use WPF or C#, only XAML.
<TextBlock Foreground="#365B6D" Margin="0, 20, 0, 0" Style="{StaticResource topsmalltext}" TextAlignment="Center">Who uses social media?
<TextBlock.Triggers>
<EventTrigger RoutedEvent="TextBlock.Loaded">
<BeginStoryboard>
<Storyboard>
<DoubleAnimation From="-384" To="0" Storyboard.TargetProperty="(RenderTransform).(TranslateTransform.X)" Duration="0:0:2">
</DoubleAnimation>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</TextBlock>
try this:
in your example you forgot to include this
</TextBlock.Triggers>