WPF C# Tutorial

        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Name="canv">
     
    
        
            
                
                                            BeginTime="-0:0:1"
                        Duration="0:0:2"
                        RepeatBehavior="Forever" AutoReverse="True"
                        From="0" To="{Binding ElementName=canv, Path=ActualWidth}" />
                                            Duration="0:0:2"
                        RepeatBehavior="Forever" AutoReverse="True"
                        From="0" To="{Binding ElementName=canv, Path=ActualHeight}" />