Click or drag to resize

WpfApplicationIdleTimer Class

WpfApplicationIdleTimer lets you to take actions after a specified application-wide (related to the application) idle time or to check the time interval of user inactivity. Use for WPF applications.
Inheritance Hierarchy
SystemObject
  SystemMarshalByRefObject
    System.ComponentModelComponent
      ZylSoft.TimersCustomTimer
        ZylSoft.TimersWpfApplicationIdleTimer

Namespace: ZylSoft.Timers
Assembly: ZylIdleTimer (in ZylIdleTimer.dll) Version: 1.42.8793.22144
XMLNS for XAML: Not mapped to an xmlns.
Syntax
public class WpfApplicationIdleTimer : CustomTimer

The WpfApplicationIdleTimer type exposes the following members.

Constructors
 NameDescription
Public methodWpfApplicationIdleTimer Constructor.
Public methodWpfApplicationIdleTimer(Int32) Constructor.
Top
Properties
 NameDescription
Public propertyContainerGets the IContainer that contains the Component.
(Inherited from Component)
Public propertyEnabled Enables or disables the timer.
(Inherited from CustomTimer)
Public propertyIdleInterval The time interval of idle in milliseconds (1 second = 1000 milliseconds). When this interval of idle is expired then the Idle event is fired.
Public propertyIdleIntervalInMinutes The time interval of idle in minutes. When this interval of idle is expired then the Idle event is fired.
Public propertyIdleIntervalInSeconds The time interval of idle in seconds (1 second = 1000 milliseconds). When this interval of idle is expired then the Idle event is fired.
Public propertySiteGets or sets the ISite of the Component.
(Inherited from Component)
Public propertyWarningInterval The time interval before application-wide idle in milliseconds. When this interval is expired then the IdleWarning event is fired. WarningInterval must be lower than IdleInterval.
Public propertyWarningIntervalInMinutes The time interval before idle in minutes. When this interval is expired then the IdleWarning event is fired. WarningInterval must be lower than IdleInterval.
Public propertyWarningIntervalInSeconds The time interval before idle in seconds. When this interval is expired then the IdleWarning event is fired. WarningInterval must be lower than IdleInterval.
Top
Methods
 NameDescription
Public methodCreateObjRefCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject)
Public methodDisposeReleases all resources used by the Component.
(Inherited from Component)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetApplicationIdleTime Returns the application-wide idle time in milliseconds.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodInitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject)
Public methodResetApplicationIdleTime Resets application idle timer.
Public methodStart Starts the timer. (Enabled = true)
(Inherited from CustomTimer)
Public methodStop Stops the timer. (Enabled = false)
(Inherited from CustomTimer)
Public methodToStringReturns a String containing the name of the Component, if any. This method should not be overridden.
(Inherited from Component)
Top
Events
 NameDescription
Public eventDisposedOccurs when the component is disposed by a call to the Dispose method.
(Inherited from Component)
Public eventIdle Occurs when IdleInterval is expired.
Public eventIdleWarning Occurs before IdleInterval is expired. The interval is set by WarningInterval property.
Public eventResume Occurs after the IdleInterval is expired and the idle time counter is reset due to user intervention.
Top
See Also