---
title: "WPF animate String Array vertically"  
description: "WPF animate String Array vertically"  
author: "Anonymous User"  
published: 2013-09-03  
updated: 2013-09-03  
canonical: https://www.mindstick.com/forum/1421/wpf-animate-string-array-vertically  
category: "wpf"  
tags: ["wpf"]  
reading_time: 1 minute  

---

# WPF animate String Array vertically

I am [trying](https://answers.mindstick.com/qa/93698/6-mistakes-couples-are-trying-to-save-money) to display a list [control](https://www.mindstick.com/blog/197/asp-dot-net-repeater-control) for which [string array](https://www.mindstick.com/forum/12803/check-for-any-item-in-string-array) is used for binding.

I would like to see the string in the array display one each time with a delay - animated.

Please give me a solution.

Thanks in advance.

## Replies

### Reply by Sumit Kesarwani

Hi Jayprakash,

You need to follow these steps :-

1. Create a DataTemplate for each entry in the list. This template can just be a ContentControl

2. Set the ItemsControl.AlternationCount on your list to the maximum value.

3. Create a behavior that you can tag on each template. This behavior should react on theAssociatedItem's 'Loaded' event.

4. Have the behavior launch a storyboard for the attached element. Delay the start of the storyboard by AlternationCount * whatever_you_like. You can create a StoryBoard dependency property on the behavior and data bind this in XAML however you see fit.

Hope this will solve your problem.


---

Original Source: https://www.mindstick.com/forum/1421/wpf-animate-string-array-vertically

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
