Back to Devexpress

TimePicker.VisibleMaskParts Property

wpf-devexpress-dot-xpf-dot-editors-dot-timepicker-866f978c.md

latest2.0 KB
Original Source

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public TimePickerMaskPart VisibleMaskParts { get; set; }
vb
Public Property VisibleMaskParts As TimePickerMaskPart

Property Value

TypeDescription
TimePickerMaskPart

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

|

Available values:

NameDescription
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.
xaml
<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

TimePicker Class

TimePicker Members

DevExpress.Xpf.Editors Namespace