title: FluidMoveBehavior with ListBox
body: <p>I'm trying to get FluidMoveBehavior to work, but nothing is animating no matter what I try.  It just adds/removes items as normal without any fading/sliding in/out. Other examples I downloaded off the internet work just fine and it seems simple to hookup. What am I doing wrong with the code below?</p>
  
  <pre><code>&lt;Window
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:SampleData="clr-namespace:Expression.Blend.SampleData.SampleDataSource"           
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
      xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
      xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
      mc:Ignorable="d"
      x:Class="WpfApplication1.MainWindow"
      x:Name="Window"
      Title="MainWindow"
      Width="640" Height="480"&gt;
  
      &lt;Window.Resources&gt;      
          &lt;DataTemplate x:Key="ItemTemplate"&gt;
              &lt;StackPanel Background="{Binding MyColor}"&gt;
                  &lt;TextBlock Text="{Binding Name}"/&gt;              
              &lt;/StackPanel&gt;
          &lt;/DataTemplate&gt;
          &lt;ItemsPanelTemplate x:Key="ItemsPanelTemplate1"&gt;
              &lt;StackPanel&gt;
                  &lt;i:Interaction.Behaviors&gt;
                      &lt;ei:FluidMoveBehavior Duration="0:0:5" AppliesTo="Children"&gt;
                          &lt;ei:FluidMoveBehavior.EaseY&gt;
                              &lt;CubicEase EasingMode="EaseInOut"/&gt;
                          &lt;/ei:FluidMoveBehavior.EaseY&gt;
                          &lt;ei:FluidMoveBehavior.EaseX&gt;
                              &lt;CubicEase EasingMode="EaseInOut"/&gt;
                          &lt;/ei:FluidMoveBehavior.EaseX&gt;
                      &lt;/ei:FluidMoveBehavior&gt;
                  &lt;/i:Interaction.Behaviors&gt;  
              &lt;/StackPanel&gt;
          &lt;/ItemsPanelTemplate&gt;
      &lt;/Window.Resources&gt;
  
      &lt;Grid x:Name="LayoutRoot"&gt;
          &lt;ListBox x:Name="lbTest" Margin="8,47,8,8" ItemTemplate="{DynamicResource ItemTemplate}" ItemsPanel="{DynamicResource ItemsPanelTemplate1}" /&gt;
          &lt;Button Content="Add" HorizontalAlignment="Left" Height="34" Margin="8,9,0,0" VerticalAlignment="Top" Width="100" Click="OnAdd"/&gt;
          &lt;Button Content="Remove" HorizontalAlignment="Left" Height="34" Margin="112,9,0,0" VerticalAlignment="Top" Width="100" Click="OnRemove"/&gt;
      &lt;/Grid&gt;
  &lt;/Window&gt;
  
      public partial class MainWindow : Window
      {
          private ObservableCollection&lt;MyItem&gt; items = new ObservableCollection&lt;MyItem&gt;();
          private static Random seed; 
  
          public MainWindow()
          {
              this.InitializeComponent();
  
              seed = new Random();
  
              lbTest.ItemsSource = items;
          }
  
          private Color GetRandomColor() 
          { 
              Color newColor = new Color(); 
  
              newColor.A = (byte)255; 
              newColor.R = (byte)seed.Next(0, 256); 
              newColor.G = (byte)seed.Next(0, 256); 
              newColor.B = (byte)seed.Next(0, 256); 
  
              return newColor;
          }
  
          private void OnRemove(object sender, System.Windows.RoutedEventArgs e)
          {
              if (items.Count &gt; 0)
                  items.RemoveAt(items.Count - 1);
          }
  
          private void OnAdd(object sender, System.Windows.RoutedEventArgs e)
          {
              items.Add(new MyItem() { 
                  Name = Guid.NewGuid().ToString(),
                  MyColor = new SolidColorBrush(GetRandomColor())
              });
          }
      }
  
      public class MyItem
      {
          public string Name
          {
              get;
              set;
          }
  
          public Brush MyColor
          {
              get;
              set;
          }
      }
  </code></pre>