# CalendarDatePicker

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/struct-calendardatepicker/

**struct** · [`ferroui-controls`](/docs/0.5.0/api/ferroui-controls/) · v0.5.0

```rust
struct CalendarDatePicker
```

A control to allow the user to select a date.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L104)

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`on_date_validation_error`](#function-on_date_validation_error)
- [`display_date_property`](#function-display_date_property)
- [`display_date_start_property`](#function-display_date_start_property)
- [`display_date_end_property`](#function-display_date_end_property)
- [`first_day_of_week_property`](#function-first_day_of_week_property)
- [`is_drop_down_open_property`](#function-is_drop_down_open_property)
- [`is_today_highlighted_property`](#function-is_today_highlighted_property)
- [`selected_date_property`](#function-selected_date_property)
- [`selected_date_format_property`](#function-selected_date_format_property)
- [`custom_date_format_string_property`](#function-custom_date_format_string_property)
- [`text_converter_property`](#function-text_converter_property)
- [`text_property`](#function-text_property)
- [`placeholder_text_property`](#function-placeholder_text_property)
- [`use_floating_placeholder_property`](#function-use_floating_placeholder_property)
- [`placeholder_foreground_property`](#function-placeholder_foreground_property)
- [`horizontal_content_alignment_property`](#function-horizontal_content_alignment_property)
- [`vertical_content_alignment_property`](#function-vertical_content_alignment_property)
- [`is_week_number_visible_property`](#function-is_week_number_visible_property)
- [`week_number_rule_property`](#function-week_number_rule_property)
- [`watermark_property`](#function-watermark_property)
- [`use_floating_watermark_property`](#function-use_floating_watermark_property)
- [`watermark_foreground_property`](#function-watermark_foreground_property)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`blackout_dates`](#function-blackout_dates)
- [`display_date`](#function-display_date)
- [`set_display_date`](#function-set_display_date)
- [`display_date_start`](#function-display_date_start)
- [`set_display_date_start`](#function-set_display_date_start)
- [`display_date_end`](#function-display_date_end)
- [`set_display_date_end`](#function-set_display_date_end)
- [`first_day_of_week`](#function-first_day_of_week)
- [`set_first_day_of_week`](#function-set_first_day_of_week)
- [`is_drop_down_open`](#function-is_drop_down_open)
- [`set_is_drop_down_open`](#function-set_is_drop_down_open)
- [`is_today_highlighted`](#function-is_today_highlighted)
- [`set_is_today_highlighted`](#function-set_is_today_highlighted)
- [`selected_date`](#function-selected_date)
- [`set_selected_date`](#function-set_selected_date)
- [`selected_date_format`](#function-selected_date_format)
- [`set_selected_date_format`](#function-set_selected_date_format)
- [`custom_date_format_string`](#function-custom_date_format_string)
- [`set_custom_date_format_string`](#function-set_custom_date_format_string)
- [`text_converter`](#function-text_converter)
- [`set_text_converter`](#function-set_text_converter)
- [`text`](#function-text)
- [`set_text`](#function-set_text)
- [`placeholder_text`](#function-placeholder_text)
- [`set_placeholder_text`](#function-set_placeholder_text)
- [`watermark`](#function-watermark)
- [`set_watermark`](#function-set_watermark)
- [`use_floating_placeholder`](#function-use_floating_placeholder)
- [`set_use_floating_placeholder`](#function-set_use_floating_placeholder)
- [`use_floating_watermark`](#function-use_floating_watermark)
- [`set_use_floating_watermark`](#function-set_use_floating_watermark)
- [`placeholder_foreground`](#function-placeholder_foreground)
- [`set_placeholder_foreground`](#function-set_placeholder_foreground)
- [`watermark_foreground`](#function-watermark_foreground)
- [`set_watermark_foreground`](#function-set_watermark_foreground)
- [`horizontal_content_alignment`](#function-horizontal_content_alignment)
- [`set_horizontal_content_alignment`](#function-set_horizontal_content_alignment)
- [`vertical_content_alignment`](#function-vertical_content_alignment)
- [`set_vertical_content_alignment`](#function-set_vertical_content_alignment)
- [`is_week_number_visible`](#function-is_week_number_visible)
- [`set_is_week_number_visible`](#function-set_is_week_number_visible)
- [`week_number_rule`](#function-week_number_rule)
- [`set_week_number_rule`](#function-set_week_number_rule)
- [`calendar_closed`](#function-calendar_closed)
- [`calendar_opened`](#function-calendar_opened)
- [`date_validation_error`](#function-date_validation_error)
- [`selected_date_changed`](#function-selected_date_changed)
- [`update_pseudo_classes`](#function-update_pseudo_classes)
- [`clear`](#function-clear)

<a id="assoc_const-type"></a>

### TYPE

```rust
const TYPE: &'static $crate::TypeInfo
```

The runtime type of this class.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L141)

<a id="function-to_ref"></a>

### to_ref

```rust
fn to_ref(self: &Self) -> $crate::Ref<CalendarDatePicker>
```

Returns a strong reference to this object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L141)

<a id="function-on_date_validation_error"></a>

### on_date_validation_error

```rust
fn on_date_validation_error(self: &Self, e: &CalendarDatePickerDateValidationErrorEventArgs)
```

Raises the `DateValidationError` event.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L141)

<a id="function-display_date_property"></a>

### display_date_property

```rust
fn display_date_property() -> &'static StyledProperty<DateTime>
```

Defines the `DisplayDate` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L595)

<a id="function-display_date_start_property"></a>

### display_date_start_property

```rust
fn display_date_start_property() -> &'static StyledProperty<Option<DateTime>>
```

Defines the `DisplayDateStart` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L595)

<a id="function-display_date_end_property"></a>

### display_date_end_property

```rust
fn display_date_end_property() -> &'static StyledProperty<Option<DateTime>>
```

Defines the `DisplayDateEnd` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L595)

<a id="function-first_day_of_week_property"></a>

### first_day_of_week_property

```rust
fn first_day_of_week_property() -> &'static StyledProperty<DayOfWeek>
```

Defines the `FirstDayOfWeek` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L595)

<a id="function-is_drop_down_open_property"></a>

### is_drop_down_open_property

```rust
fn is_drop_down_open_property() -> &'static StyledProperty<bool>
```

Defines the `IsDropDownOpen` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L595)

<a id="function-is_today_highlighted_property"></a>

### is_today_highlighted_property

```rust
fn is_today_highlighted_property() -> &'static StyledProperty<bool>
```

Defines the `IsTodayHighlighted` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L595)

<a id="function-selected_date_property"></a>

### selected_date_property

```rust
fn selected_date_property() -> &'static StyledProperty<Option<DateTime>>
```

Defines the `SelectedDate` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L595)

<a id="function-selected_date_format_property"></a>

### selected_date_format_property

```rust
fn selected_date_format_property() -> &'static StyledProperty<CalendarDatePickerFormat>
```

Defines the `SelectedDateFormat` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L595)

<a id="function-custom_date_format_string_property"></a>

### custom_date_format_string_property

```rust
fn custom_date_format_string_property() -> &'static StyledProperty<String>
```

Defines the `CustomDateFormatString` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L595)

<a id="function-text_converter_property"></a>

### text_converter_property

```rust
fn text_converter_property() -> &'static StyledProperty<Option<Rc<dyn IValueConverter>>>
```

Defines the `TextConverter` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L595)

<a id="function-text_property"></a>

### text_property

```rust
fn text_property() -> &'static StyledProperty<Option<String>>
```

Defines the `Text` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L595)

<a id="function-placeholder_text_property"></a>

### placeholder_text_property

```rust
fn placeholder_text_property() -> &'static StyledProperty<Option<String>>
```

Defines the `PlaceholderText` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L595)

<a id="function-use_floating_placeholder_property"></a>

### use_floating_placeholder_property

```rust
fn use_floating_placeholder_property() -> &'static StyledProperty<bool>
```

Defines the `UseFloatingPlaceholder` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L595)

<a id="function-placeholder_foreground_property"></a>

### placeholder_foreground_property

```rust
fn placeholder_foreground_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
```

Defines the `PlaceholderForeground` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L595)

<a id="function-horizontal_content_alignment_property"></a>

### horizontal_content_alignment_property

```rust
fn horizontal_content_alignment_property() -> &'static StyledProperty<HorizontalAlignment>
```

Defines the `HorizontalContentAlignment` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L595)

<a id="function-vertical_content_alignment_property"></a>

### vertical_content_alignment_property

```rust
fn vertical_content_alignment_property() -> &'static StyledProperty<VerticalAlignment>
```

Defines the `VerticalContentAlignment` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L595)

<a id="function-is_week_number_visible_property"></a>

### is_week_number_visible_property

```rust
fn is_week_number_visible_property() -> &'static StyledProperty<bool>
```

Defines the `IsWeekNumberVisible` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L595)

<a id="function-week_number_rule_property"></a>

### week_number_rule_property

```rust
fn week_number_rule_property() -> &'static StyledProperty<CalendarWeekRule>
```

Defines the `WeekNumberRule` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L595)

<a id="function-watermark_property"></a>

### watermark_property

```rust
fn watermark_property() -> &'static StyledProperty<Option<String>>
```

Defines the `Watermark` property.

> **Deprecated.** Use placeholder_text_property instead.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L705)

<a id="function-use_floating_watermark_property"></a>

### use_floating_watermark_property

```rust
fn use_floating_watermark_property() -> &'static StyledProperty<bool>
```

Defines the `UseFloatingWatermark` property.

> **Deprecated.** Use use_floating_placeholder_property instead.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L711)

<a id="function-watermark_foreground_property"></a>

### watermark_foreground_property

```rust
fn watermark_foreground_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
```

Defines the `WatermarkForeground` property.

> **Deprecated.** Use placeholder_foreground_property instead.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L717)

<a id="function-construct"></a>

### construct

```rust
fn construct() -> Self
```

Creates the class data; see `ferroui_base::FerroObject::construct`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L729)

<a id="function-new"></a>

### new

```rust
fn new() -> Ref<Self>
```

Initializes a new instance of the `CalendarDatePicker` class.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L759)

<a id="function-blackout_dates"></a>

### blackout_dates

```rust
fn blackout_dates(self: &Self) -> Option<CalendarBlackoutDatesCollection>
```

Gets a collection of dates that are marked as not selectable: the
collection of the calendar of the template, `None` before a
template with a calendar is applied.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L776)

<a id="function-display_date"></a>

### display_date

```rust
fn display_date(self: &Self) -> DateTime
```

Gets or sets the date to display.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L781)

<a id="function-set_display_date"></a>

### set_display_date

```rust
fn set_display_date(self: &Self, value: DateTime)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L785)

<a id="function-display_date_start"></a>

### display_date_start

```rust
fn display_date_start(self: &Self) -> Option<DateTime>
```

Gets or sets the first date to be displayed.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L790)

<a id="function-set_display_date_start"></a>

### set_display_date_start

```rust
fn set_display_date_start(self: &Self, value: Option<DateTime>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L794)

<a id="function-display_date_end"></a>

### display_date_end

```rust
fn display_date_end(self: &Self) -> Option<DateTime>
```

Gets or sets the last date to be displayed.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L799)

<a id="function-set_display_date_end"></a>

### set_display_date_end

```rust
fn set_display_date_end(self: &Self, value: Option<DateTime>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L803)

<a id="function-first_day_of_week"></a>

### first_day_of_week

```rust
fn first_day_of_week(self: &Self) -> DayOfWeek
```

Gets or sets the day that is considered the beginning of the week.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L808)

<a id="function-set_first_day_of_week"></a>

### set_first_day_of_week

```rust
fn set_first_day_of_week(self: &Self, value: DayOfWeek)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L812)

<a id="function-is_drop_down_open"></a>

### is_drop_down_open

```rust
fn is_drop_down_open(self: &Self) -> bool
```

Gets or sets a value indicating whether the drop-down calendar is
open or closed.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L818)

<a id="function-set_is_drop_down_open"></a>

### set_is_drop_down_open

```rust
fn set_is_drop_down_open(self: &Self, value: bool)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L822)

<a id="function-is_today_highlighted"></a>

### is_today_highlighted

```rust
fn is_today_highlighted(self: &Self) -> bool
```

Gets or sets a value indicating whether the current date will be
highlighted.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L828)

<a id="function-set_is_today_highlighted"></a>

### set_is_today_highlighted

```rust
fn set_is_today_highlighted(self: &Self, value: bool)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L832)

<a id="function-selected_date"></a>

### selected_date

```rust
fn selected_date(self: &Self) -> Option<DateTime>
```

Gets or sets the currently selected date. The default is `None`.

Setting it panics when the date is in the blackout dates.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L839)

<a id="function-set_selected_date"></a>

### set_selected_date

```rust
fn set_selected_date(self: &Self, value: Option<DateTime>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L843)

<a id="function-selected_date_format"></a>

### selected_date_format

```rust
fn selected_date_format(self: &Self) -> CalendarDatePickerFormat
```

Gets or sets the format that is used to display the selected date.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L848)

<a id="function-set_selected_date_format"></a>

### set_selected_date_format

```rust
fn set_selected_date_format(self: &Self, value: CalendarDatePickerFormat)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L852)

<a id="function-custom_date_format_string"></a>

### custom_date_format_string

```rust
fn custom_date_format_string(self: &Self) -> String
```

Gets or sets the format string of the custom date format.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L857)

<a id="function-set_custom_date_format_string"></a>

### set_custom_date_format_string

```rust
fn set_custom_date_format_string(self: &Self, value: &str)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L861)

<a id="function-text_converter"></a>

### text_converter

```rust
fn text_converter(self: &Self) -> Option<Rc<dyn IValueConverter>>
```

Gets or sets the converter between a date and its text. With a
converter the date format and the custom format string are not
used.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L868)

<a id="function-set_text_converter"></a>

### set_text_converter

```rust
fn set_text_converter(self: &Self, value: Option<Rc<dyn IValueConverter>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L872)

<a id="function-text"></a>

### text

```rust
fn text(self: &Self) -> Option<String>
```

Gets or sets the text that is displayed by the date picker.

Setting a text that is not in an acceptable format raises the
`DateValidationError` event (and panics when a handler asks for the
exception to be thrown).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L881)

<a id="function-set_text"></a>

### set_text

```rust
fn set_text(self: &Self, value: Option<&str>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L885)

<a id="function-placeholder_text"></a>

### placeholder_text

```rust
fn placeholder_text(self: &Self) -> Option<String>
```

Gets or sets the placeholder text.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L890)

<a id="function-set_placeholder_text"></a>

### set_placeholder_text

```rust
fn set_placeholder_text(self: &Self, value: Option<&str>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L894)

<a id="function-watermark"></a>

### watermark

```rust
fn watermark(self: &Self) -> Option<String>
```

Gets or sets the placeholder text.

> **Deprecated.** Use placeholder_text instead.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L900)

<a id="function-set_watermark"></a>

### set_watermark

```rust
fn set_watermark(self: &Self, value: Option<&str>)
```



> **Deprecated.** Use set_placeholder_text instead.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L905)

<a id="function-use_floating_placeholder"></a>

### use_floating_placeholder

```rust
fn use_floating_placeholder(self: &Self) -> bool
```

Gets or sets a value indicating whether the placeholder floats
above the text.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L911)

<a id="function-set_use_floating_placeholder"></a>

### set_use_floating_placeholder

```rust
fn set_use_floating_placeholder(self: &Self, value: bool)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L915)

<a id="function-use_floating_watermark"></a>

### use_floating_watermark

```rust
fn use_floating_watermark(self: &Self) -> bool
```

Gets or sets a value indicating whether the placeholder floats
above the text.

> **Deprecated.** Use use_floating_placeholder instead.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L922)

<a id="function-set_use_floating_watermark"></a>

### set_use_floating_watermark

```rust
fn set_use_floating_watermark(self: &Self, value: bool)
```



> **Deprecated.** Use set_use_floating_placeholder instead.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L927)

<a id="function-placeholder_foreground"></a>

### placeholder_foreground

```rust
fn placeholder_foreground(self: &Self) -> Option<Rc<dyn IBrush>>
```

Gets or sets the brush used for the foreground color of the
placeholder text.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L933)

<a id="function-set_placeholder_foreground"></a>

### set_placeholder_foreground

```rust
fn set_placeholder_foreground(self: &Self, value: Option<Rc<dyn IBrush>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L937)

<a id="function-watermark_foreground"></a>

### watermark_foreground

```rust
fn watermark_foreground(self: &Self) -> Option<Rc<dyn IBrush>>
```

Gets or sets the brush used for the foreground color of the
placeholder text.

> **Deprecated.** Use placeholder_foreground instead.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L944)

<a id="function-set_watermark_foreground"></a>

### set_watermark_foreground

```rust
fn set_watermark_foreground(self: &Self, value: Option<Rc<dyn IBrush>>)
```



> **Deprecated.** Use set_placeholder_foreground instead.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L949)

<a id="function-horizontal_content_alignment"></a>

### horizontal_content_alignment

```rust
fn horizontal_content_alignment(self: &Self) -> HorizontalAlignment
```

Gets or sets the horizontal alignment of the content within the
control.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L955)

<a id="function-set_horizontal_content_alignment"></a>

### set_horizontal_content_alignment

```rust
fn set_horizontal_content_alignment(self: &Self, value: HorizontalAlignment)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L959)

<a id="function-vertical_content_alignment"></a>

### vertical_content_alignment

```rust
fn vertical_content_alignment(self: &Self) -> VerticalAlignment
```

Gets or sets the vertical alignment of the content within the
control.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L965)

<a id="function-set_vertical_content_alignment"></a>

### set_vertical_content_alignment

```rust
fn set_vertical_content_alignment(self: &Self, value: VerticalAlignment)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L969)

<a id="function-is_week_number_visible"></a>

### is_week_number_visible

```rust
fn is_week_number_visible(self: &Self) -> bool
```

Gets or sets a value indicating whether week numbers are shown in
the calendar popup.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L975)

<a id="function-set_is_week_number_visible"></a>

### set_is_week_number_visible

```rust
fn set_is_week_number_visible(self: &Self, value: bool)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L979)

<a id="function-week_number_rule"></a>

### week_number_rule

```rust
fn week_number_rule(self: &Self) -> CalendarWeekRule
```

Gets or sets the rule used to determine the first week of the year
for week number display. The default is taken from the culture that
was current when the calendar class was initialised.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L986)

<a id="function-set_week_number_rule"></a>

### set_week_number_rule

```rust
fn set_week_number_rule(self: &Self, value: CalendarWeekRule)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L990)

<a id="function-calendar_closed"></a>

### calendar_closed

```rust
fn calendar_closed(self: &Self, handler: impl Fn() -> () + 'static) -> Subscription
```

Occurs when the drop-down `Calendar` is closed.

Dropping the returned guard removes the handler; `Subscription::detach` keeps it for the
life of the picker.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L1014)

<a id="function-calendar_opened"></a>

### calendar_opened

```rust
fn calendar_opened(self: &Self, handler: impl Fn() -> () + 'static) -> Subscription
```

Occurs when the drop-down `Calendar` is opened.

Dropping the returned guard removes the handler; `Subscription::detach` keeps it for the
life of the picker.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L1022)

<a id="function-date_validation_error"></a>

### date_validation_error

```rust
fn date_validation_error(self: &Self, handler: impl Fn(&CalendarDatePickerDateValidationErrorEventArgs) -> () + 'static) -> Subscription
```

Occurs when the text is assigned a value that cannot be interpreted
as a date.

Dropping the returned guard removes the handler; `Subscription::detach` keeps it for the
life of the picker.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L1031)

<a id="function-selected_date_changed"></a>

### selected_date_changed

```rust
fn selected_date_changed(self: &Self, handler: impl Fn(&SelectionChangedEventArgs) -> () + 'static) -> Subscription
```

Occurs when the selected date is changed.

Dropping the returned guard removes the handler; `Subscription::detach` keeps it for the
life of the picker.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L1045)

<a id="function-update_pseudo_classes"></a>

### update_pseudo_classes

```rust
fn update_pseudo_classes(self: &Self)
```

Updates the visual state of the control by applying the latest
pseudo classes.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L1058)

<a id="function-clear"></a>

### clear

```rust
fn clear(self: &Self)
```

Clear the date picker.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/calendar_date_picker/calendar_date_picker.rs#L1484)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`TemplatedControlImplExt`](/docs/0.5.0/api/ferroui-controls/primitives/trait-templatedcontrolimplext/)
- [`ControlImplExt`](/docs/0.5.0/api/ferroui-controls/trait-controlimplext/)
- [`CalendarDatePickerImplExt`](/docs/0.5.0/api/ferroui-controls/trait-calendardatepickerimplext/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- [`InputElementImplExt`](/docs/0.5.0/api/ferroui-base/input/trait-inputelementimplext/)
- [`InteractiveImplExt`](/docs/0.5.0/api/ferroui-base/interactivity/trait-interactiveimplext/)
- [`LayoutableImplExt`](/docs/0.5.0/api/ferroui-base/layout/trait-layoutableimplext/)
- [`FerroObjectImplExt`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimplext/)
- [`StyledElementImplExt`](/docs/0.5.0/api/ferroui-base/trait-styledelementimplext/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- [`VisualImplExt`](/docs/0.5.0/api/ferroui-base/trait-visualimplext/)
- `ErasedDestructor`
- `IntoEither`
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<CalendarDatePicker>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`StaticType`](/docs/0.5.0/api/ferroui-base/trait-statictype/)
- [`ObjectType`](/docs/0.5.0/api/ferroui-base/trait-objecttype/)
- [`Subclassable<T>`](/docs/0.5.0/api/ferroui-base/trait-subclassable/)
- [`DefaultConstructible`](/docs/0.5.0/api/ferroui-base/trait-defaultconstructible/)
- [`StyledElementImpl`](/docs/0.5.0/api/ferroui-base/trait-styledelementimpl/)
- [`VisualImpl`](/docs/0.5.0/api/ferroui-base/trait-visualimpl/)
- [`LayoutableImpl`](/docs/0.5.0/api/ferroui-base/layout/trait-layoutableimpl/)
- [`InteractiveImpl`](/docs/0.5.0/api/ferroui-base/interactivity/trait-interactiveimpl/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)
- [`InputElementImpl`](/docs/0.5.0/api/ferroui-base/input/trait-inputelementimpl/)
- [`TemplatedControlImpl`](/docs/0.5.0/api/ferroui-controls/primitives/trait-templatedcontrolimpl/)
- [`ControlImpl`](/docs/0.5.0/api/ferroui-controls/trait-controlimpl/)
- [`CalendarDatePickerImpl`](/docs/0.5.0/api/ferroui-controls/trait-calendardatepickerimpl/)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
