# Statuses | WPF Controls | DevExpress Documentation

## Overview

The appointment’s availability (busy) status is an object that is used to categorize appointments. The scheduler displays statuses as a strip on an appointment rectangle’s left side colored according to the status type.

The image below shows appointments with different statuses. Users can click *Show Time As* in the context menu to change the appointment’s status.

![WPFScheduler_Status_ShowTimeAs](/WPF/images/wpfscheduler_status_showtimeas131862.png)

A status is an [AppointmentStatusItem](/WPF/DevExpress.Xpf.Scheduling.AppointmentStatusItem) object that is assigned to an appointment with the [AppointmentItem.StatusId](/WPF/DevExpress.Xpf.Scheduling.AppointmentItem.StatusId) property. All statuses are contained in the [SchedulerControl.StatusItems](/WPF/DevExpress.Xpf.Scheduling.SchedulerControl.StatusItems) collection.

Set the [ShowAppointmentStatus](/WPF/DevExpress.Xpf.Scheduling.SchedulerViewBase.ShowAppointmentStatus) property to **false** to hide statuses.

## Default Statuses

The [SchedulerControl.StatusItems](/WPF/DevExpress.Xpf.Scheduling.SchedulerControl.StatusItems) collection includes the following statuses by default:

- XAML

<section id="tabpanel_HUdbX3hofc_tabid-xaml" role="tabpanel" data-tab="tabid-xaml">
<pre><code class="lang-xaml">&lt;dxsch:SchedulerControl.StatusItems&gt;
    &lt;dxsch:AppointmentStatusItem BrushName=&quot;{x:Static dxsch:DefaultBrushNames.StatusFree}&quot; Caption=&quot;{dxsch:SchedulerLocalizer StringId=Caption_Free}&quot; Id=&quot;{x:Static dxsch:DefaultItemIds.StatusFree}&quot;/&gt;
    &lt;dxsch:AppointmentStatusItem BrushName=&quot;{x:Static dxsch:DefaultBrushNames.StatusTentative}&quot; Caption=&quot;{dxsch:SchedulerLocalizer StringId=Caption_Tentative}&quot; Id=&quot;{x:Static dxsch:DefaultItemIds.StatusTentative}&quot;/&gt;
    &lt;dxsch:AppointmentStatusItem BrushName=&quot;{x:Static dxsch:DefaultBrushNames.StatusBusy}&quot; Caption=&quot;{dxsch:SchedulerLocalizer StringId=Caption_Busy}&quot; Id=&quot;{x:Static dxsch:DefaultItemIds.StatusBusy}&quot;/&gt;
    &lt;dxsch:AppointmentStatusItem BrushName=&quot;{x:Static dxsch:DefaultBrushNames.StatusOutOfOffice}&quot; Caption=&quot;{dxsch:SchedulerLocalizer StringId=Caption_OutOfOffice}&quot; Id=&quot;{x:Static dxsch:DefaultItemIds.StatusOutOfOffice}&quot;/&gt;
&lt;/dxsch:SchedulerControl.StatusItems&gt;
</code></pre></section>

You can generate this XAML snippet by clicking the **Create Status Items** item in the scheduler’s [Smart Tag](/WPF/18096/whats-installed/smart-tags/smart-tag-overview).

See the [Appearance Customization](/WPF/400994/controls-and-libraries/scheduler/appearance-customization) topic for information on how to customize brushes associated with statuses.

Tip

Handle the [SchedulerControl.InitNewAppointment](/WPF/DevExpress.Xpf.Scheduling.SchedulerControl.InitNewAppointment) event to initialize all newly created appointments with a specific status.

## Bind to Data

Use the [DataSource.AppointmentStatusesSource](/WPF/DevExpress.Xpf.Scheduling.DataSource.AppointmentStatusesSource) property to bind statuses to a data source. Map data fields to status properties using the [AppointmentStatusMappings](/WPF/DevExpress.Xpf.Scheduling.AppointmentStatusMappings) settings.

See Also

[How to: Create Custom Labels and Statuses](/WPF/116501/controls-and-libraries/scheduler/examples/how-to-create-custom-labels-and-statuses)

[Customize Colors](/WPF/400994/controls-and-libraries/scheduler/appearance-customization)