Posted 13 years ago
by Michael Haps
![Avatar](https://secure.gravatar.com/avatar/e10d149939368b69f756c22dd2a95a41.jpg?s=64&d=identicon&r=g)
Hello.
Why cant I generate a item template for the AnimatedStackPanel like this?The designer throws an exception:
System.Reflection.TargetInvocationException
Exception has been thrown by the target of an invocation.
Why cant I generate a item template for the AnimatedStackPanel like this?
<ListBox Name="_list"
ItemsSource="{Binding Path=MyList}"
>
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<views:AnimatedStackPanel Name="_aPanel"
Orientation="Vertical"
>
<TextBlock Text="{Binding Path=Description"/>
</views:AnimatedStackPanel>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
</ListBox>
System.Reflection.TargetInvocationException
Exception has been thrown by the target of an invocation.