Skip to main content

TimePicker.VisibleMaskParts Property

Gets or sets a flagged enumeration value that specifies which time picker mask part is visible. This is a dependency property.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v24.1.dll

NuGet Package: DevExpress.Wpf.Core

Declaration

public TimePickerMaskPart VisibleMaskParts { get; set; }

Property Value

Type Description
TimePickerMaskPart

A flagged enumeration value that specifies which time picker mask part is visible.

Available values:

Name Description
Hours

The hours part of time value is visible.

Minutes

The minutes part of time value is visible.

Seconds

The seconds part of time value is visible.

Remarks

Use the VisibleMaskParts property to specify which time parts and clock arrows (hours, minutes, seconds) are visible onscreen.

The code sample below demonstrates two time pickers:

  1. The first time picker displays hours, minutes, and seconds.
  2. The second time picker displays only hours and minutes.
<Window
    ...
    xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors">
    <Grid>
        <dxe:TimePicker VisibleMaskParts="Hours,Minutes,Seconds"/>
        <dxe:TimePicker VisibleMaskParts="Hours,Minutes"/>
    </Grid>
<Window>

See Also