SlideShare a Scribd company logo
Animation
Animation Process
• The program creates a timer.
• The program checks the timer at set intervals to see how
much time has elapsed.
• Each time the program checks the timer, it computes the
current opacity value for the
rectangle based on how much time has elapsed.
• The program then updates the rectangle with the new
value and redraws it.
WPF Concepts
• WPF includes an efficient timing system that is exposed
through managed code and Extensible Application
Markup Language (XAML)
• Timeline
• Clocks
• Local animations
Animation and Properties
• animation subsystem in WPF relies heavily on
DependencyProperties
Property

Animation

Definition

Color

ColorAnimation

Animates the color on a Brush or
GradientStop.

Double

DoubleAnimation

Animates the Opacity, Angle, or
Length properties.

Point

PointAnimation

Animates a specific spot on the X,Y
plane in a linear fashion.
PointAnimation is commonly used
for lines and paths.

String

None

Animates the TextContent of a
TextBlock or the Content of a
Button.
Common key properties
• By - Acts as a measurement in that it determines how
much of an animation will occur.
• From - Determines the initial stage for which the
transition will begin. The double type valued
range is from 0 to 1.
• To - Determines the final stage of the transition. The
double type valued range is from 0 to 1.
Timelines
• System.Windows.Media.Animation namespace
• Timeline - public base class that determines a period of
time
<Storyboard>
<DoubleAnimation From="200"
To="400" Duration="0:0:5"
Storyboard.TargetName="btnAnimated"
Storyboard.TargetProperty="Width"/>
</Storyboard>
Timeline Hierarchies
<Storyboard x:Name="A">
<DoubleAnimation x:Name="B" Duration="0:0:3" ... />
<ParallelTimeline x:Name="C" BeginTime="0:0:3">
<DoubleAnimation x:Name="D" Duration="0:0:2" ... />
<ParallelTimeline x:Name="E" BeginTime="0:0:l" Duration="0:0:4" >
<DoubleAnimation x:Name="F" BeginTime="0:0:l" Duration="0:0:2"
... />
<DoubleAnimation x:Name="G" Duration="0:0:10".../>
</ParallelTimeline>
</ParallelTimeline>
</Storyboard>
Timeline Hierarchies
• Acceleration and deceleration: AccelerationRatio and
DecelerationRatio
• Key frame timelines
• Storyboards: BeginStoryboard, PauseStoryboard and
ResumeStoryboard
Questions?

More Related Content

Viewers also liked

Vishvas resume template-6
Vishvas resume template-6Vishvas resume template-6
Vishvas resume template-6
mission_vishvas
 
Cmmaao pert-analysis-pmi-pmp (1)
Cmmaao pert-analysis-pmi-pmp (1)Cmmaao pert-analysis-pmi-pmp (1)
Cmmaao pert-analysis-pmi-pmp (1)
mission_vishvas
 
Cmmaao pmi-project plan guide
Cmmaao pmi-project plan guideCmmaao pmi-project plan guide
Cmmaao pmi-project plan guide
mission_vishvas
 
Pmi pmbok-resume template-1
Pmi pmbok-resume template-1Pmi pmbok-resume template-1
Pmi pmbok-resume template-1
mission_vishvas
 
Cmmaao pmi-resume template-8
Cmmaao pmi-resume template-8Cmmaao pmi-resume template-8
Cmmaao pmi-resume template-8
mission_vishvas
 
Mission vishvas-resume template-1
Mission vishvas-resume template-1Mission vishvas-resume template-1
Mission vishvas-resume template-1
mission_vishvas
 
Cmmaao pmi-resume template-9
Cmmaao pmi-resume template-9Cmmaao pmi-resume template-9
Cmmaao pmi-resume template-9
mission_vishvas
 
Resume template 6
Resume template 6Resume template 6
Resume template 6
mission_vishvas
 
Cmmaao pmi-03 service retirement governance recommendation
Cmmaao pmi-03 service retirement governance recommendationCmmaao pmi-03 service retirement governance recommendation
Cmmaao pmi-03 service retirement governance recommendation
mission_vishvas
 
Cmmaao pmi-resume template-16
Cmmaao pmi-resume template-16Cmmaao pmi-resume template-16
Cmmaao pmi-resume template-16
mission_vishvas
 
Cmmaao roster-pmi-pmp
Cmmaao roster-pmi-pmpCmmaao roster-pmi-pmp
Cmmaao roster-pmi-pmp
mission_vishvas
 
Cmmaao pmi-design blueprint v1b
Cmmaao pmi-design blueprint v1bCmmaao pmi-design blueprint v1b
Cmmaao pmi-design blueprint v1b
mission_vishvas
 
Pmi pmp-resume template-6
Pmi pmp-resume template-6Pmi pmp-resume template-6
Pmi pmp-resume template-6
mission_vishvas
 
Key problems of allocation of education responsibilities
Key problems of allocation of education responsibilitiesKey problems of allocation of education responsibilities
Key problems of allocation of education responsibilities
Kostiantyn Gavrylov
 
Pmi pmbok-resume template-2
Pmi pmbok-resume template-2Pmi pmbok-resume template-2
Pmi pmbok-resume template-2
mission_vishvas
 
Mission vishvas-resume template-5
Mission vishvas-resume template-5Mission vishvas-resume template-5
Mission vishvas-resume template-5
mission_vishvas
 
Pmp pmi-resume template1
Pmp pmi-resume template1Pmp pmi-resume template1
Pmp pmi-resume template1
mission_vishvas
 
Mission vishvas-resume template-10
Mission vishvas-resume template-10Mission vishvas-resume template-10
Mission vishvas-resume template-10
mission_vishvas
 
Mission vishvas-resume template-17
Mission vishvas-resume template-17Mission vishvas-resume template-17
Mission vishvas-resume template-17
mission_vishvas
 

Viewers also liked (20)

Vishvas resume template-6
Vishvas resume template-6Vishvas resume template-6
Vishvas resume template-6
 
Cmmaao pert-analysis-pmi-pmp (1)
Cmmaao pert-analysis-pmi-pmp (1)Cmmaao pert-analysis-pmi-pmp (1)
Cmmaao pert-analysis-pmi-pmp (1)
 
Cmmaao pmi-project plan guide
Cmmaao pmi-project plan guideCmmaao pmi-project plan guide
Cmmaao pmi-project plan guide
 
Pmi pmbok-resume template-1
Pmi pmbok-resume template-1Pmi pmbok-resume template-1
Pmi pmbok-resume template-1
 
Cmmaao pmi-resume template-8
Cmmaao pmi-resume template-8Cmmaao pmi-resume template-8
Cmmaao pmi-resume template-8
 
Mission vishvas-resume template-1
Mission vishvas-resume template-1Mission vishvas-resume template-1
Mission vishvas-resume template-1
 
Cmmaao pmi-resume template-9
Cmmaao pmi-resume template-9Cmmaao pmi-resume template-9
Cmmaao pmi-resume template-9
 
Resume template 6
Resume template 6Resume template 6
Resume template 6
 
Cmmaao pmi-03 service retirement governance recommendation
Cmmaao pmi-03 service retirement governance recommendationCmmaao pmi-03 service retirement governance recommendation
Cmmaao pmi-03 service retirement governance recommendation
 
Cmmaao pmi-resume template-16
Cmmaao pmi-resume template-16Cmmaao pmi-resume template-16
Cmmaao pmi-resume template-16
 
Cmmaao roster-pmi-pmp
Cmmaao roster-pmi-pmpCmmaao roster-pmi-pmp
Cmmaao roster-pmi-pmp
 
Cmmaao pmi-design blueprint v1b
Cmmaao pmi-design blueprint v1bCmmaao pmi-design blueprint v1b
Cmmaao pmi-design blueprint v1b
 
Pmi pmp-resume template-6
Pmi pmp-resume template-6Pmi pmp-resume template-6
Pmi pmp-resume template-6
 
Key problems of allocation of education responsibilities
Key problems of allocation of education responsibilitiesKey problems of allocation of education responsibilities
Key problems of allocation of education responsibilities
 
Pvc mould 2
Pvc mould 2Pvc mould 2
Pvc mould 2
 
Pmi pmbok-resume template-2
Pmi pmbok-resume template-2Pmi pmbok-resume template-2
Pmi pmbok-resume template-2
 
Mission vishvas-resume template-5
Mission vishvas-resume template-5Mission vishvas-resume template-5
Mission vishvas-resume template-5
 
Pmp pmi-resume template1
Pmp pmi-resume template1Pmp pmi-resume template1
Pmp pmi-resume template1
 
Mission vishvas-resume template-10
Mission vishvas-resume template-10Mission vishvas-resume template-10
Mission vishvas-resume template-10
 
Mission vishvas-resume template-17
Mission vishvas-resume template-17Mission vishvas-resume template-17
Mission vishvas-resume template-17
 

Similar to Animation

Microsoft silverlight
Microsoft silverlightMicrosoft silverlight
Microsoft silverlight
Nguyen Tran
 
The Case for a Signal Oriented Data Stream Management System
The Case for a Signal Oriented Data Stream Management SystemThe Case for a Signal Oriented Data Stream Management System
The Case for a Signal Oriented Data Stream Management System
Reza Rahimi
 
old_obsolete.pptx
old_obsolete.pptxold_obsolete.pptx
old_obsolete.pptx
Rajesh Challa
 
Android animation theory
Android animation theoryAndroid animation theory
Android animation theory
Siva Ramakrishna kv
 
iterativealgorithms.ppsx
iterativealgorithms.ppsxiterativealgorithms.ppsx
iterativealgorithms.ppsx
Bharathi Lakshmi Pon
 
Iterative Algorithms.ppsx
Iterative Algorithms.ppsxIterative Algorithms.ppsx
Iterative Algorithms.ppsx
BharathiLakshmiAAssi
 
Automatic Vehicle Entry Exit Log - Senior Year Project
Automatic Vehicle Entry Exit Log - Senior Year ProjectAutomatic Vehicle Entry Exit Log - Senior Year Project
Automatic Vehicle Entry Exit Log - Senior Year Project
Ahmad Azhar
 
Bonn motion, traffic generation and nam
Bonn motion, traffic generation and namBonn motion, traffic generation and nam
Bonn motion, traffic generation and nam
Manas Gaur
 
Android App Development - 12 animations
Android App Development - 12 animationsAndroid App Development - 12 animations
Android App Development - 12 animations
Diego Grancini
 
PERFORMANCE TESTING USING LOAD RUNNER
PERFORMANCE  TESTING  USING  LOAD RUNNERPERFORMANCE  TESTING  USING  LOAD RUNNER
PERFORMANCE TESTING USING LOAD RUNNER
AjithaG9
 
SpringPeople Introduction to HTML5 & CSS3
SpringPeople Introduction to HTML5 & CSS3SpringPeople Introduction to HTML5 & CSS3
SpringPeople Introduction to HTML5 & CSS3
SpringPeople
 
OPENSESAME: Unlocking Smartphone Through Handwaving Biometrics
OPENSESAME: Unlocking Smartphone Through Handwaving BiometricsOPENSESAME: Unlocking Smartphone Through Handwaving Biometrics
OPENSESAME: Unlocking Smartphone Through Handwaving Biometrics
Nandu B Rajan
 

Similar to Animation (12)

Microsoft silverlight
Microsoft silverlightMicrosoft silverlight
Microsoft silverlight
 
The Case for a Signal Oriented Data Stream Management System
The Case for a Signal Oriented Data Stream Management SystemThe Case for a Signal Oriented Data Stream Management System
The Case for a Signal Oriented Data Stream Management System
 
old_obsolete.pptx
old_obsolete.pptxold_obsolete.pptx
old_obsolete.pptx
 
Android animation theory
Android animation theoryAndroid animation theory
Android animation theory
 
iterativealgorithms.ppsx
iterativealgorithms.ppsxiterativealgorithms.ppsx
iterativealgorithms.ppsx
 
Iterative Algorithms.ppsx
Iterative Algorithms.ppsxIterative Algorithms.ppsx
Iterative Algorithms.ppsx
 
Automatic Vehicle Entry Exit Log - Senior Year Project
Automatic Vehicle Entry Exit Log - Senior Year ProjectAutomatic Vehicle Entry Exit Log - Senior Year Project
Automatic Vehicle Entry Exit Log - Senior Year Project
 
Bonn motion, traffic generation and nam
Bonn motion, traffic generation and namBonn motion, traffic generation and nam
Bonn motion, traffic generation and nam
 
Android App Development - 12 animations
Android App Development - 12 animationsAndroid App Development - 12 animations
Android App Development - 12 animations
 
PERFORMANCE TESTING USING LOAD RUNNER
PERFORMANCE  TESTING  USING  LOAD RUNNERPERFORMANCE  TESTING  USING  LOAD RUNNER
PERFORMANCE TESTING USING LOAD RUNNER
 
SpringPeople Introduction to HTML5 & CSS3
SpringPeople Introduction to HTML5 & CSS3SpringPeople Introduction to HTML5 & CSS3
SpringPeople Introduction to HTML5 & CSS3
 
OPENSESAME: Unlocking Smartphone Through Handwaving Biometrics
OPENSESAME: Unlocking Smartphone Through Handwaving BiometricsOPENSESAME: Unlocking Smartphone Through Handwaving Biometrics
OPENSESAME: Unlocking Smartphone Through Handwaving Biometrics
 

Recently uploaded

HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
panagenda
 
Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving | Nameplate Manufacturing Process - 2024Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving
 
Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |
AstuteBusiness
 
Digital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
Digital Banking in the Cloud: How Citizens Bank Unlocked Their MainframeDigital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
Digital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
Precisely
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
MichaelKnudsen27
 
Essentials of Automations: Exploring Attributes & Automation Parameters
Essentials of Automations: Exploring Attributes & Automation ParametersEssentials of Automations: Exploring Attributes & Automation Parameters
Essentials of Automations: Exploring Attributes & Automation Parameters
Safe Software
 
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Pitangent Analytics & Technology Solutions Pvt. Ltd
 
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
Alex Pruden
 
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
Fwdays
 
AppSec PNW: Android and iOS Application Security with MobSF
AppSec PNW: Android and iOS Application Security with MobSFAppSec PNW: Android and iOS Application Security with MobSF
AppSec PNW: Android and iOS Application Security with MobSF
Ajin Abraham
 
Harnessing the Power of NLP and Knowledge Graphs for Opioid Research
Harnessing the Power of NLP and Knowledge Graphs for Opioid ResearchHarnessing the Power of NLP and Knowledge Graphs for Opioid Research
Harnessing the Power of NLP and Knowledge Graphs for Opioid Research
Neo4j
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Alpen-Adria-Universität
 
"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota
Fwdays
 
Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
Tatiana Kojar
 
Y-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PPY-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PP
c5vrf27qcz
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
Zilliz
 
5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
DanBrown980551
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
ssuserfac0301
 
Principle of conventional tomography-Bibash Shahi ppt..pptx
Principle of conventional tomography-Bibash Shahi ppt..pptxPrinciple of conventional tomography-Bibash Shahi ppt..pptx
Principle of conventional tomography-Bibash Shahi ppt..pptx
BibashShahi
 

Recently uploaded (20)

HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
 
Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving | Nameplate Manufacturing Process - 2024Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving | Nameplate Manufacturing Process - 2024
 
Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |
 
Digital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
Digital Banking in the Cloud: How Citizens Bank Unlocked Their MainframeDigital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
Digital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
 
Essentials of Automations: Exploring Attributes & Automation Parameters
Essentials of Automations: Exploring Attributes & Automation ParametersEssentials of Automations: Exploring Attributes & Automation Parameters
Essentials of Automations: Exploring Attributes & Automation Parameters
 
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
 
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
 
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
 
Artificial Intelligence and Electronic Warfare
Artificial Intelligence and Electronic WarfareArtificial Intelligence and Electronic Warfare
Artificial Intelligence and Electronic Warfare
 
AppSec PNW: Android and iOS Application Security with MobSF
AppSec PNW: Android and iOS Application Security with MobSFAppSec PNW: Android and iOS Application Security with MobSF
AppSec PNW: Android and iOS Application Security with MobSF
 
Harnessing the Power of NLP and Knowledge Graphs for Opioid Research
Harnessing the Power of NLP and Knowledge Graphs for Opioid ResearchHarnessing the Power of NLP and Knowledge Graphs for Opioid Research
Harnessing the Power of NLP and Knowledge Graphs for Opioid Research
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
 
"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota
 
Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
 
Y-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PPY-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PP
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
 
5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
 
Principle of conventional tomography-Bibash Shahi ppt..pptx
Principle of conventional tomography-Bibash Shahi ppt..pptxPrinciple of conventional tomography-Bibash Shahi ppt..pptx
Principle of conventional tomography-Bibash Shahi ppt..pptx
 

Animation

  • 2. Animation Process • The program creates a timer. • The program checks the timer at set intervals to see how much time has elapsed. • Each time the program checks the timer, it computes the current opacity value for the rectangle based on how much time has elapsed. • The program then updates the rectangle with the new value and redraws it.
  • 3. WPF Concepts • WPF includes an efficient timing system that is exposed through managed code and Extensible Application Markup Language (XAML) • Timeline • Clocks • Local animations
  • 4. Animation and Properties • animation subsystem in WPF relies heavily on DependencyProperties Property Animation Definition Color ColorAnimation Animates the color on a Brush or GradientStop. Double DoubleAnimation Animates the Opacity, Angle, or Length properties. Point PointAnimation Animates a specific spot on the X,Y plane in a linear fashion. PointAnimation is commonly used for lines and paths. String None Animates the TextContent of a TextBlock or the Content of a Button.
  • 5. Common key properties • By - Acts as a measurement in that it determines how much of an animation will occur. • From - Determines the initial stage for which the transition will begin. The double type valued range is from 0 to 1. • To - Determines the final stage of the transition. The double type valued range is from 0 to 1.
  • 6. Timelines • System.Windows.Media.Animation namespace • Timeline - public base class that determines a period of time <Storyboard> <DoubleAnimation From="200" To="400" Duration="0:0:5" Storyboard.TargetName="btnAnimated" Storyboard.TargetProperty="Width"/> </Storyboard>
  • 7. Timeline Hierarchies <Storyboard x:Name="A"> <DoubleAnimation x:Name="B" Duration="0:0:3" ... /> <ParallelTimeline x:Name="C" BeginTime="0:0:3"> <DoubleAnimation x:Name="D" Duration="0:0:2" ... /> <ParallelTimeline x:Name="E" BeginTime="0:0:l" Duration="0:0:4" > <DoubleAnimation x:Name="F" BeginTime="0:0:l" Duration="0:0:2" ... /> <DoubleAnimation x:Name="G" Duration="0:0:10".../> </ParallelTimeline> </ParallelTimeline> </Storyboard>
  • 9. • Acceleration and deceleration: AccelerationRatio and DecelerationRatio • Key frame timelines • Storyboards: BeginStoryboard, PauseStoryboard and ResumeStoryboard

Editor's Notes

  1. &lt;StackPanel xmlns=&apos;http://schemas.microsoft.com/winfx/2006/xaml/presentation&apos; xmlns:x=&apos;http://schemas.microsoft.com/winfx/2006/xaml&apos;&gt; &lt;Canvas&gt; &lt;Canvas.Triggers&gt; &lt;EventTrigger RoutedEvent=&quot;Canvas.MouseEnter&quot;&gt; &lt;BeginStoryboard&gt; &lt;Storyboard&gt; &lt;DoubleAnimationUsingKeyFrames Storyboard.TargetName=&quot;rctAnim&quot; Storyboard.TargetProperty=&quot;(Canvas.Top)&quot;&gt; &lt;DoubleAnimationUsingKeyFrames.KeyFrames&gt; &lt;DiscreteDoubleKeyFrame Value=&quot;0&quot; KeyTime=&quot;0:0:0&quot; /&gt; &lt;SplineDoubleKeyFrame Value=&quot;50&quot; KeyTime=&quot;0:0:5&quot;/&gt; &lt;SplineDoubleKeyFrame Value=&quot;250&quot; KeyTime=&quot;0:0:10&quot;/&gt; &lt;DiscreteDoubleKeyFrame Value=&quot;450&quot; KeyTime=&quot;0:0:15&quot;/&gt; &lt;/DoubleAnimationUsingKeyFrames.KeyFrames&gt; &lt;/DoubleAnimationUsingKeyFrames&gt; &lt;/Storyboard&gt; &lt;/BeginStoryboard&gt; &lt;/EventTrigger&gt; &lt;/Canvas.Triggers&gt; &lt;Rectangle x:Name=&quot;rctAnim&quot; Fill=&quot;Black&quot; Width=&quot;20&quot; Height=&quot;20&quot; /&gt; &lt;/Canvas&gt; &lt;/StackPanel&gt;