Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.2.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