Skip to content

Value input markup reference

Range controls, numeric input, progress indicators, calendar, date, and color pickers.

Receiver: Calendar.

Method Sets Summary
BindSelectedDate(ObservableValue<DateTime?> source) bind SelectedDate Binds the selected date to an observable value.
BindSelectedDate(ObservableValue<TSource> source, Func<TSource, DateTime?> convert, Func<DateTime?, TSource> convertBack = null) bind SelectedDate Binds the selected date to a converted observable value.
DisplayDate(DateTime value) DisplayDate Sets the month/year currently displayed.
DisplayMode(CalendarMode value) DisplayMode Sets the display mode (Month, Year, Decade).
FirstDayOfWeek(DayOfWeek value) FirstDayOfWeek Sets the first day of the week.
IsTodayHighlighted(bool value = true) IsTodayHighlighted Sets whether today’s date is highlighted.
OnDisplayModeChanged(Action<CalendarMode> handler) event DisplayModeChanged Subscribes handler to DisplayModeChanged. Raised when DisplayMode changes.
OnSelectedDateChanged(Action<DateTime?> handler) event SelectedDateChanged Subscribes handler to SelectedDateChanged. Raised when SelectedDate changes (keyboard navigation or click).
SelectedDate(DateTime? value) SelectedDate Sets the selected date.

Receiver: ProgressIndicator and derived types (where T : ProgressIndicator).

Method Sets Summary
BindIsActive(ObservableValue<TSource> source, Func<TSource, bool> convert) bind IsActive Binds the active state to a converted observable value.
BindIsActive(ObservableValue<bool> source) bind IsActive Binds the active state to an observable value.
IsActive(bool value = true) IsActive Sets whether the animation is active.

Receiver: RangeBase and derived types (where T : RangeBase).

Method Sets Summary
LargeChange(double value) LargeChange Sets the increment for large changes.
Maximum(double value) Maximum Sets the maximum value.
Minimum(double value) Minimum Sets the minimum value.
OnValueChanged(Action<double> handler) event ValueChanged Subscribes handler to ValueChanged. Occurs when the value changes.
Range(double minimum, double maximum) Minimum, Maximum Sets Minimum and Maximum.
SmallChange(double value) SmallChange Sets the increment for small changes.
Value(double value) Value Sets the current value.

Receiver: NumericUpDown.

Method Sets Summary
BindValue(ObservableValue<TSource> source, Func<TSource, double> convert, Func<double, TSource> convertBack = null) bind Value Binds the value to a converted observable value.
BindValue(ObservableValue<double> source) bind Value Binds the value to an observable value.
BindValue(ObservableValue<int> source) bind Value Binds the value to an observable integer value.
ChangeOnWheel(bool value = true) ChangeOnWheel Sets whether the mouse wheel changes the value by SmallChange per notch while the pointer is over the box.
Format(string value) Format Sets the format string the value is displayed with.
IsInteger(bool value = true) IsInteger Sets whether Value is rounded to the nearest whole number on every assignment and each step is a whole number of at least 1; the default is false.

Receiver: ProgressBar.

Method Sets Summary
BindIsIndeterminate(ObservableValue<TSource> source, Func<TSource, bool> convert) bind IsIndeterminate Binds the indeterminate state to a converted observable value.
BindIsIndeterminate(ObservableValue<bool> source) bind IsIndeterminate Binds the indeterminate state to an observable value.
BindValue(ObservableValue<TSource> source, Func<TSource, double> convert) bind Value Binds the value to a converted observable value.
BindValue(ObservableValue<double> source) bind Value Binds the value to an observable value.
Fill(Color value) Fill Sets the color of the part of the bar that shows the value or the indeterminate sweep.
IsIndeterminate(bool value = true) IsIndeterminate Sets whether the bar shows a repeating sweep animation instead of Value.

Receiver: ProgressRing.

Method Sets Summary
BindIsIndeterminate(ObservableValue<TSource> source, Func<TSource, bool> convert) bind IsIndeterminate Binds the indeterminate state to a converted observable value.
BindIsIndeterminate(ObservableValue<bool> source) bind IsIndeterminate Binds the indeterminate state to an observable value.
BindValue(ObservableValue<TSource> source, Func<TSource, double> convert) bind Value Binds the value to a converted observable value.
BindValue(ObservableValue<double> source) bind Value Binds the value to an observable value.
Fill(Color value) Fill Sets the color of the arc that shows the value or the indeterminate spin.
IsIndeterminate(bool value = true) IsIndeterminate Sets whether the ring shows a repeating spin animation instead of Value.

Receiver: Slider.

Method Sets Summary
BindValue(ObservableValue<TSource> source, Func<TSource, double> convert, Func<double, TSource> convertBack = null) bind Value Binds the value to a converted observable value.
BindValue(ObservableValue<double> source) bind Value Binds the value to an observable value.
ChangeOnWheel(bool value = true) ChangeOnWheel Sets whether the mouse wheel changes the value by SmallChange per notch while the pointer is over the slider.
Fill(Color value) Fill Sets the color of the track from the minimum up to the value.
Orientation(Orientation value) Orientation Sets the direction of the track; a vertical slider has its minimum at the bottom.
ThumbBorderBrush(Color value) ThumbBorderBrush Sets the thumb border color.
ThumbBrush(Color value) ThumbBrush Sets the thumb color.

Receiver: ColorPicker.

Method Sets Summary
Kind(ColorPickerKind value) Kind Sets which sections are visible inside the popup.
OnSelectedColorChanged(Action<Color> handler) event SelectedColorChanged Subscribes handler to SelectedColorChanged. Raised when the selected color changes.
SelectedColor(Color value) SelectedColor Sets the selected color.
ShowAlpha(bool value = true) ShowAlpha Sets whether the popup offers alpha editing and the header swatch previews transparency.

Receiver: DatePicker.

Method Sets Summary
BindSelectedDate(ObservableValue<DateTime?> source) bind SelectedDate Binds the selected date to an observable value.
BindSelectedDate(ObservableValue<TSource> source, Func<TSource, DateTime?> convert, Func<DateTime?, TSource> convertBack = null) bind SelectedDate Binds the selected date to a converted observable value.
DateFormat(string value) DateFormat Sets the date display format string.
FirstDayOfWeek(DayOfWeek value) FirstDayOfWeek Sets the first day of the week for the calendar popup.
OnSelectedDateChanged(Action<DateTime?> handler) event SelectedDateChanged Subscribes handler to SelectedDateChanged. Raised when the selected date changes.
Placeholder(string value) Placeholder Sets the placeholder text shown when no date is selected.
SelectedDate(DateTime? value) SelectedDate Sets the selected date.