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

DataLayoutItem.PhoneNumberMask Property

Gets or sets the mask for editing this DataLayoutItem‘s value, if this value is formatted as a phone number.

Namespace: DevExpress.Xpf.LayoutControl

Assembly: DevExpress.Xpf.LayoutControl.v24.2.dll

NuGet Package: DevExpress.Wpf.LayoutControl

#Declaration

public static string PhoneNumberMask { get; set; }

#Property Value

Type Description
String

A String value that is the edit mask for this DataLayoutItem.

#Remarks

If certain data source properties are marked with the DataType attribute, editors generated for these properties will automatically format their values according to this attribute. For properties marked with the DataType.PhoneNumber attribute, the default “(000) 000-0000” edit mask is applied. Use the PhoneNumberMask property to modify this automatically applied mask.

See the Masked Input topic to learn more about formatting editor values.

See Also