Back to Devexpress

XafDefaultPropertyAttribute Class

expressappframework-devexpress-dot-expressapp-dot-dc-d0ecdc43.md

latest1.9 KB
Original Source

XafDefaultPropertyAttribute Class

Applied to business classes. Specifies the default property.

Namespace : DevExpress.ExpressApp.DC

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, Inherited = true)]
public class XafDefaultPropertyAttribute :
    Attribute
vb
<AttributeUsage(AttributeTargets.Class Or AttributeTargets.Interface, Inherited:=True)>
Public Class XafDefaultPropertyAttribute
    Inherits Attribute

Remarks

This interface is a replacement for the DefaultPropertyAttribute that can be applied both to classes and interfaces. Use this interface to specify the default property, as it is demonstrated in the How to: Specify a Display Member (for a Lookup Editor, Detail Form Caption, etc.) topic.

Default property values are displayed in the following:

  • detail form captions;
  • the leftmost columns of List Views;
  • Lookup List Views;
  • Lookup Editors in an unexpanded state.

Inheritance

Object Attribute XafDefaultPropertyAttribute

See Also

XafDefaultPropertyAttribute Members

DevExpress.ExpressApp.DC Namespace