<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: DataTemplate Triggers with animations in WPF</title>
	<atom:link href="http://rob.runtothehills.org/archives/88/feed" rel="self" type="application/rss+xml" />
	<link>http://rob.runtothehills.org/archives/88</link>
	<description>Talk is cheap. Show me the code.</description>
	<lastBuildDate>Tue, 24 Aug 2010 09:16:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Rob</title>
		<link>http://rob.runtothehills.org/archives/88/comment-page-1#comment-1355</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Fri, 07 Nov 2008 21:03:33 +0000</pubDate>
		<guid isPermaLink="false">http://runtothehills.org/rob/archives/88#comment-1355</guid>
		<description>Hi Jenifer. I don&#039;t know without seeing the XAML/full example for context, but one thing i do notice from the snippet you posted is that you aren&#039;t implementing INotifyPropertyChanged and you&#039;re setting the flag in the constructor - possibly not the best place as the visual tree may not be correctly initialised at this point. It&#039;s safer to trigger this sort of thing in the OnLoaded event which guarantees that your window is good to go!
cheers,
Rob</description>
		<content:encoded><![CDATA[<p>Hi Jenifer. I don&#8217;t know without seeing the XAML/full example for context, but one thing i do notice from the snippet you posted is that you aren&#8217;t implementing INotifyPropertyChanged and you&#8217;re setting the flag in the constructor &#8211; possibly not the best place as the visual tree may not be correctly initialised at this point. It&#8217;s safer to trigger this sort of thing in the OnLoaded event which guarantees that your window is good to go!<br />
cheers,<br />
Rob</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jennifer Overholt</title>
		<link>http://rob.runtothehills.org/archives/88/comment-page-1#comment-1354</link>
		<dc:creator>Jennifer Overholt</dc:creator>
		<pubDate>Fri, 07 Nov 2008 16:35:48 +0000</pubDate>
		<guid isPermaLink="false">http://runtothehills.org/rob/archives/88#comment-1354</guid>
		<description>Hmm... xaml didn&#039;t post.. trying again...


                
        
            
                
        
            
                
                    
                
            
            
                
                    
                        
                    
                    
                        
                    
                
            
        
    
    
        
    
</description>
		<content:encoded><![CDATA[<p>Hmm&#8230; xaml didn&#8217;t post.. trying again&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jennifer Overholt</title>
		<link>http://rob.runtothehills.org/archives/88/comment-page-1#comment-1353</link>
		<dc:creator>Jennifer Overholt</dc:creator>
		<pubDate>Fri, 07 Nov 2008 16:35:10 +0000</pubDate>
		<guid isPermaLink="false">http://runtothehills.org/rob/archives/88#comment-1353</guid>
		<description>I am having same problem, just backwards, i just WANT the storyboard to START on my image! :) I want it to start when in the code behind listed below imageTagSet = true;

Can you tell me what&#039;s wrong with this? PLEASE?!? :)


                
        
            
                
        
            
                
                    
                
            
            
                
                    
                        
                    
                    
                        
                    
                
            
        
    
    
        
    


CODE BEHIND
__________________________

    public partial class Window1 : Window
    {
        private bool imageTagSet = false;

        public bool ImageTagSet
        {
            get { return imageTagSet; }
            set { imageTagSet = value; }
        }
        public Window1()
        {
            InitializeComponent();
            imageTagSet = true;
        } 
    }</description>
		<content:encoded><![CDATA[<p>I am having same problem, just backwards, i just WANT the storyboard to START on my image! <img src='http://rob.runtothehills.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I want it to start when in the code behind listed below imageTagSet = true;</p>
<p>Can you tell me what&#8217;s wrong with this? PLEASE?!? <img src='http://rob.runtothehills.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>CODE BEHIND<br />
__________________________</p>
<p>    public partial class Window1 : Window<br />
    {<br />
        private bool imageTagSet = false;</p>
<p>        public bool ImageTagSet<br />
        {<br />
            get { return imageTagSet; }<br />
            set { imageTagSet = value; }<br />
        }<br />
        public Window1()<br />
        {<br />
            InitializeComponent();<br />
            imageTagSet = true;<br />
        }<br />
    }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rob</title>
		<link>http://rob.runtothehills.org/archives/88/comment-page-1#comment-1300</link>
		<dc:creator>rob</dc:creator>
		<pubDate>Sat, 17 May 2008 10:50:21 +0000</pubDate>
		<guid isPermaLink="false">http://runtothehills.org/rob/archives/88#comment-1300</guid>
		<description>Hi Bobo. I&#039;m not really I understand what your problem is. It sounds like the changing of your animation causes jumps?
One way of ensuring smooth transitions is to omit the starting points of the transition (get rid of the &quot;From&quot; in the xaml) this way, all the animations just go from their current position towards their next position.
is that what you mean?

Cheers!
</description>
		<content:encoded><![CDATA[<p>Hi Bobo. I&#8217;m not really I understand what your problem is. It sounds like the changing of your animation causes jumps?<br />
One way of ensuring smooth transitions is to omit the starting points of the transition (get rid of the &#8220;From&#8221; in the xaml) this way, all the animations just go from their current position towards their next position.<br />
is that what you mean?</p>
<p>Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bobo</title>
		<link>http://rob.runtothehills.org/archives/88/comment-page-1#comment-1299</link>
		<dc:creator>Bobo</dc:creator>
		<pubDate>Fri, 16 May 2008 12:53:51 +0000</pubDate>
		<guid isPermaLink="false">http://runtothehills.org/rob/archives/88#comment-1299</guid>
		<description>I&#039;am the problem as you do ... Tried out your code but when I stop the storyboards let say I wanted too animate a margin .. from etc. 3 different defined Enum states .. When I use the stopStoryboard the animation resets, so the margin animation is not fluid between the states .. Do you have any idea how to make the elements keep their properties when a storyboard gets the stopStoryboard event. ?.</description>
		<content:encoded><![CDATA[<p>I&#8217;am the problem as you do &#8230; Tried out your code but when I stop the storyboards let say I wanted too animate a margin .. from etc. 3 different defined Enum states .. When I use the stopStoryboard the animation resets, so the margin animation is not fluid between the states .. Do you have any idea how to make the elements keep their properties when a storyboard gets the stopStoryboard event. ?.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
