<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.silverlight.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Programming with .NET - General</title><link>http://forums.silverlight.net/forums/17.aspx</link><description>General discussions around authoring Silverlight .NET applications.</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>Re: Animation Question - Changing Endpoint Programatically</title><link>http://forums.silverlight.net/forums/thread/242910.aspx</link><pubDate>Mon, 06 Jul 2009 03:53:48 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:242910</guid><dc:creator>Mog Liang - MSFT</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/242910.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=242910</wfw:commentRss><description>&lt;p&gt;Hi Status,&lt;/p&gt;
&lt;p&gt;I understand that you applied a group of&amp;nbsp;Transform on animation target. The problem you encountered is TranslateTransform isn&amp;#39;t precise, it cannot translate target to correct place. If I misunderstood you, please correct me.&lt;/p&gt;
&lt;p&gt;From your description, I assume that you used&amp;nbsp;ScaleTransform. When using ScaleTransform, the actual translate distance&amp;nbsp;is&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;[actual distance] = [translate property value] * [scale ratio]&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;This may be the reason why animation target doesn&amp;#39;t move enough distance as TranslateTransform&amp;#39;s property&amp;nbsp;set. Could you confirm this?&lt;/p&gt;
&lt;p&gt;For more information about Transform, please check this article&lt;/p&gt;
&lt;p&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/cc189037(VS.95).aspx"&gt;http://msdn.microsoft.com/en-us/library/cc189037(VS.95).aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Re: Animation Question - Changing Endpoint Programatically</title><link>http://forums.silverlight.net/forums/thread/242663.aspx</link><pubDate>Sun, 05 Jul 2009 05:08:17 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:242663</guid><dc:creator>egoZd</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/242663.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=242663</wfw:commentRss><description>&lt;p&gt;Here i have a full example with source talk about how to dymtic set up the endpoint for animation!&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.slblogger.cn/p66.htm"&gt;http://www.slblogger.cn/p66.htm&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Animation Question - Changing Endpoint Programatically</title><link>http://forums.silverlight.net/forums/thread/241042.aspx</link><pubDate>Thu, 02 Jul 2009 22:21:40 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:241042</guid><dc:creator>Status</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/241042.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=241042</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I&amp;#39;ve been doing something similar.&amp;nbsp; Not sure what a DoubleAnimationKeFrame is though.&amp;nbsp; My transform animation is a DoubleAnimationUsingKeyFrames with SplineDoubleKeyFrames within it.&amp;nbsp; The ending value is correct, but it&amp;#39;s not animating to the correct spot, it&amp;#39;s 1/2 the value it should be.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;lt;Storyboard x:Name=&amp;quot;animate&amp;quot;&amp;gt; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;DoubleAnimationUsingKeyFrames Storyboard.TargetName=&amp;quot;puck&amp;quot; Storyboard.TargetProperty=&amp;quot;(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)&amp;quot; BeginTime=&amp;quot;00:00:00&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;SplineDoubleKeyFrame KeyTime=&amp;quot;00:00:00&amp;quot; Value=&amp;quot;0&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;SplineDoubleKeyFrame KeyTime=&amp;quot;00:00:00.5000000&amp;quot; Value=&amp;quot;0&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;SplineDoubleKeyFrame x:Name=&amp;quot;endY&amp;quot; KeyTime=&amp;quot;00:00:01&amp;quot; Value=&amp;quot;0&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/DoubleAnimationUsingKeyFrames&amp;gt; &lt;/p&gt;&lt;p&gt;&amp;lt;/Storyboard&amp;gt; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Code:&lt;/p&gt;&lt;p&gt;DoubleAnimationUsingKeyFrames daukf2 = (DoubleAnimationUsingKeyFrames)animateUp.Children[3];&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; daukf2.KeyFrames[0].Value = startingYloc; // starting point&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; daukf2.KeyFrames[1].Value = halfY; // halfway point&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; daukf2.KeyFrames[2].Value = modYloc;&amp;nbsp; // Ending point&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Animation Question - Changing Endpoint Programatically</title><link>http://forums.silverlight.net/forums/thread/240718.aspx</link><pubDate>Thu, 02 Jul 2009 10:10:52 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:240718</guid><dc:creator>nirav_2052003</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/240718.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=240718</wfw:commentRss><description>&lt;p&gt;You can access DoubleAnimationKeyFrame for starting frame and the same for the ending frame.&lt;/p&gt;
&lt;p&gt;You can get the DoubleAnimationKeyFrame for end frame as &lt;/p&gt;
&lt;p&gt;DoubleAnimationKeyFrame endKeyFrameInstance=StoryboardObject.Children[StoryboardObject.Children.Count-1];&lt;/p&gt;
&lt;p&gt;set end value as &lt;/p&gt;
&lt;p&gt;endKeyFrameInstance.EndValue=someValue;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Nirav&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Animation Question - Changing Endpoint Programatically</title><link>http://forums.silverlight.net/forums/thread/239216.aspx</link><pubDate>Mon, 29 Jun 2009 15:37:06 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:239216</guid><dc:creator>Status</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/239216.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=239216</wfw:commentRss><description>&lt;p&gt;I have a question about changing an endpoint for an existing animation programatically.&amp;nbsp; I have a circle that does some animation (skew, resizing...etc) from it&amp;#39;s current position to X,Y in a set amount of time. &amp;nbsp; Is there an easy way to set the destination X,Y?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;I have been playing with using a DoubleAnimationUsingKeyFrames on the animation, but my end point never ends in the correct place (the end keyFrame, always the next to last key frame).&amp;nbsp; &lt;br /&gt;</description></item></channel></rss>