If I have something like:
<StackPanel Orientation="Horizontal">
<TextBlock Text="FIRST" Margin="5" VerticalAlignment="Center" />
<TextBlock Text="SECOND" Margin="5" VerticalAlignment="Center" />
<TextBlock Text="THIRD" Margin="5" VerticalAlignment="Center" />
<TextBlock Text="FOURTH" Margin="5" VerticalAlignment="Center" />
<TextBlock Text="FIFTH" Margin="5" VerticalAlignment="Center" />
</StackPanel>
Could you please show me how can I create an animation where TextBlocks will roll out from the right side of the screen, each after another?
Could you show me a similar example?
I know that I probably gonna need to use Canvas instead of StackPanel, but how to arrange them properly then I don’t know…
Here is a two-example answer. If you truly want to use TextBlocks in a StackPanel, I’ve shown that. However, if you are actually looking for a menu, I’ve included that example as well. Both examples are really the same – just the object that gets animated changes.