Table of Contents

Class DateTimeComponent

Namespace
Whim.Bar
Assembly
Whim.Bar.dll
The bar component for the date time widget.
public record DateTimeComponent : BarComponent, IEquatable<BarComponent>, IEquatable<DateTimeComponent>
Inheritance
DateTimeComponent
Implements
Inherited Members

Constructors

DateTimeComponent(int, string)

The bar component for the date time widget.
public DateTimeComponent(int IntervalMs, string Format)

Parameters

IntervalMs int
The interval in milliseconds to update the date time.
Format string
The date time format. See Custom date and time format strings.

Properties

Format

The date time format. See Custom date and time format strings.
public string Format { get; init; }

Property Value

string

IntervalMs

The interval in milliseconds to update the date time.
public int IntervalMs { get; init; }

Property Value

int

Methods

CreateWidget(IContext, IMonitor, Window)

Delegate for creating a component. A component will subscribe to Closed if it has resources to dispose.
public override UserControl CreateWidget(IContext context, IMonitor monitor, Window window)

Parameters

context IContext
monitor IMonitor
window Window

Returns

UserControl