DispatcherTimer.IsEnabled Property
.NET Framework 4.5
Gets or sets a value that indicates whether the timer is running.
Namespace: System.Windows.Threading
Assembly: WindowsBase (in WindowsBase.dll)
XMLNS for XAML: Not mapped to an xmlns.
<object IsEnabled="bool" .../>
Property Value
Type: System.Booleantrue if the timer is enabled; otherwise, false. The default is false.
The following example creates a DispatcherTimer. A new DispatcherTimer object named dispatcherTimer is created. The event handler dispatcherTimer_Tick is added to the Tick event. The Interval is set to 1 second using a TimeSpan object.
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.