Back to Devexpress

DateEditPickerStyleSettings.HourStep Property

wpf-devexpress-dot-xpf-dot-editors-dot-dateeditpickerstylesettings.md

latest2.1 KB
Original Source

DateEditPickerStyleSettings.HourStep Property

Gets or sets an interval between hours in DateEditPickerStyleSettings. This is a dependency property.

Namespace : DevExpress.Xpf.Editors

Assembly : DevExpress.Xpf.Core.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public int? HourStep { get; set; }
vb
Public Property HourStep As Integer?

Property Value

TypeDescription
Nullable<Int32>

A step between available hours. Null when the property is not specified.

|

Remarks

The following code sample specifies the HourStep property to 4, MinuteStep to 15, and SecondStep to 30:

xaml
<Window ...
    xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors">
    <StackPanel>
        <dxe:DateEdit Mask="HH:mm:ss" MaskType="DateTime" MaskUseAsDisplayFormat="True">
            <dxe:DateEdit.StyleSettings>
                <dxe:DateEditPickerStyleSettings HourStep="4" MinuteStep="15" SecondStep="30" />
            </dxe:DateEdit.StyleSettings>
        </dxe:DateEdit>
    </StackPanel>
</Window>

See Also

DateEditPickerStyleSettings Class

DateEditPickerStyleSettings Members

DevExpress.Xpf.Editors Namespace