DateTimeSource Class |
Namespace: TomsToolbox.Wpf
The DateTimeSource type exposes the following members.
Name | Description | |
---|---|---|
DateTimeSource |
Initializes a new instance of the DateTimeSource class.
|
Name | Description | |
---|---|---|
Now |
Gets a DateTime object that is set to the current date and time on this computer, expressed as the local time.
| |
Today |
Gets the current date.
| |
UpdateInterval |
Gets or sets the interval in which the PropertyChanged event is raised for all properties.
| |
UtcNow |
Gets a DateTime object that is set to the current date and time on this computer, expressed as the Coordinated Universal Time (UTC).
|
Name | Description | |
---|---|---|
Finalize |
Finalizes an instance of the DateTimeSource class.
(Overrides ObjectFinalize.) |
Name | Description | |
---|---|---|
PropertyChanged | Occurs when a property value changes. |
Name | Description | |
---|---|---|
Default |
The default singleton object. Use this as a source for binding that supports manual updating.
|
Name | Description | |
---|---|---|
SafeCastT |
Performs a cast from object to T, avoiding possible null violations if T is a value type.
(Defined by ObjectExtensions.) |
<FrameworkElement.Resources> <toms:DateTimeSource x:Key="TimeSource" UpdateInterval="00:00:01" /> </FrameworkElement.Resources> ... <TextBox Text=Binding Path=Now, Source=StaticResource TimeSource}}" />