--- title: "How to: Change the Speed of a Clock Without Changing the Speed of Its Timeline" ms.date: "03/30/2017" dev_langs: - "csharp" - "vb" helpviewer_keywords: - "speed of Clock [WPF], changing" - "clocks [WPF], changing speed of" ms.assetid: 72f36dd0-f085-445d-8589-19a83fe74f5e --- # How to: Change the Speed of a Clock Without Changing the Speed of Its Timeline A object's property enables you to change the speed of a without altering the of the clock's . In the following example, a is used to interactively modify the of a clock. The event and the clock's property are used to display the clock's current global speed each time its interactive is changed. ## Example [!code-csharp[timingbehaviors_procedural_snip#GraphicsMMClockControllerSpeedRatioExample](~/samples/snippets/csharp/VS_Snippets_Wpf/timingbehaviors_procedural_snip/CSharp/ClockControllerSpeedRatioExample.cs#graphicsmmclockcontrollerspeedratioexample)] [!code-vb[timingbehaviors_procedural_snip#GraphicsMMClockControllerSpeedRatioExample](~/samples/snippets/visualbasic/VS_Snippets_Wpf/timingbehaviors_procedural_snip/visualbasic/clockcontrollerspeedratioexample.vb#graphicsmmclockcontrollerspeedratioexample)]