Posted 13 years ago
by Michael Haps

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.