Volume Control
Application-specific hotkeys for Windows
|
Public Member Functions | |
BindableTimer () | |
Initializes a new instance of the BindableTimer class, and sets all properties to their default values. More... | |
BindableTimer (double interval) | |
Initializes a new instance of the BindableTimer class, setting the Interval property to the period specified by interval . More... | |
void | Close () |
void | Start () |
void | Stop () |
void | Restart () |
Resets the elapsed time without triggering the Elapsed event. If the timer is stopped, it will be started. More... | |
BindingExpressionBase | SetBinding (DependencyProperty dp, BindingBase binding) |
void | BeginInit () |
void | EndInit () |
void | Dispose () |
Disposes of the BindableTimer instance and the underlying timer object. More... | |
Static Public Attributes | |
const bool | DefaultEnabled = false |
Gets the default DefaultEnabled value. More... | |
const double | DefaultInterval = 100.0 |
Gets the default Interval value. More... | |
const double | DefaultMinInterval = 1.0 |
Gets the default MinInterval value. More... | |
const double | DefaultMaxInterval = int.MaxValue |
Gets the default DefaultMaxInterval value. More... | |
const bool | DefaultAutoReset = true |
Gets the default AutoReset value. More... | |
static readonly DependencyProperty | EnabledProperty |
The DependencyProperty instance for the Enabled property. More... | |
static readonly DependencyProperty | IntervalProperty |
The DependencyProperty instance for the Interval property. More... | |
static readonly DependencyProperty | MinIntervalProperty |
The DependencyProperty instance for the MinInterval property. More... | |
static readonly DependencyProperty | MaxIntervalProperty |
The DependencyProperty instance for the MaxInterval property. More... | |
static readonly DependencyProperty | AutoResetProperty |
The DependencyProperty instance for the AutoReset property. More... | |
Properties | |
bool | Enabled [get, set] |
double | Interval [get, set] |
double | MinInterval [get, set] |
Gets or sets the minimum interval, expressed in milliseconds, at which to raise the Elapsed event. When attempting to set the interval to a value less than this number, the interval is set to this number instead. More... | |
double | MaxInterval [get, set] |
Gets or sets the maximum interval, expressed in milliseconds, at which to raise the Elapsed event. When attempting to set the interval to a value greater than this number, the interval is set to this number instead. More... | |
bool | AutoReset [get, set] |
ISite? | Site [get, set] |
EventHandler? | Disposed |
Events | |
System.Timers.? ElapsedEventHandler | Elapsed |
Uses System.Timers.Timer & supports WPF data binding for related properties.
VolumeControl.WPF.BindableTimer.BindableTimer | ( | ) |
Initializes a new instance of the BindableTimer class, and sets all properties to their default values.
References VolumeControl.WPF.BindableTimer.AutoReset, VolumeControl.WPF.BindableTimer.Enabled, and VolumeControl.WPF.BindableTimer.Interval.
VolumeControl.WPF.BindableTimer.BindableTimer | ( | double | interval | ) |
Initializes a new instance of the BindableTimer class, setting the Interval property to the period specified by interval .
interval | The time, in milliseconds, between events. The value must be greater than zero and less than or equal to int.MaxValue. |
References VolumeControl.WPF.BindableTimer.Interval.
void VolumeControl.WPF.BindableTimer.Dispose | ( | ) |
Disposes of the BindableTimer instance and the underlying timer object.
Referenced by VolumeControl.WPF.BindableTimer.Close().
void VolumeControl.WPF.BindableTimer.Restart | ( | ) |
Resets the elapsed time without triggering the Elapsed event. If the timer is stopped, it will be started.
Does not cause the value of the Enabled property to change, unless the timer was stopped prior to calling this method.
References VolumeControl.WPF.BindableTimer.Enabled.
|
static |
The DependencyProperty instance for the AutoReset property.
|
static |
Gets the default AutoReset value.
|
static |
Gets the default DefaultEnabled value.
|
static |
Gets the default Interval value.
|
static |
Gets the default DefaultMaxInterval value.
|
static |
Gets the default MinInterval value.
|
static |
The DependencyProperty instance for the Enabled property.
|
static |
The DependencyProperty instance for the Interval property.
|
static |
The DependencyProperty instance for the MaxInterval property.
|
static |
The DependencyProperty instance for the MinInterval property.
|
getset |
Gets or sets the maximum interval, expressed in milliseconds, at which to raise the Elapsed event.
When attempting to set the interval to a value greater than this number, the interval is set to this number instead.
The maximum possible interval allowed by System.Timers.Timer cannot be greater than int.MaxValue.
ArgumentOutOfRangeException | Value is greater than int.MaxValue. |
|
getset |
Gets or sets the minimum interval, expressed in milliseconds, at which to raise the Elapsed event.
When attempting to set the interval to a value less than this number, the interval is set to this number instead.
The minimum possible interval allowed by System.Timers.Timer cannot be less than or equal to zero.
ArgumentOutOfRangeException | Value is less than or equal to zero. |