Hi,
Yeah, the array is a little tricky. Discrete was meant more as a building block, so the only way to use it directly involves dynamic animation properties. Instead of using Values="..." you'll have to use ValuesScript="[....]" and pass a javascript array. Here's an example:
<asp:Panel ID="rainbow" runat="server">Rainbow...</asp:Panel>
<ajaxToolkit:AnimationExtender runat="server" TargetControlID="rainbow">
<Animations>
<OnClick>
<Discrete Property="style" PropertyKey="backgroundColor"
ValuesScript="['red', 'orange', 'yellow', 'green', 'blue', 'indigo', 'violet', 'transparent']" />
</OnClick>
</Animations>
</ajaxToolkit:AnimationExtender>
Thanks,
Ted
This posting is provided "AS IS" with no warranties, and confers no rights.