Specifies whether the View Item that corresponds to the target business class property is visible in a Detail View.
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, Inherited = true)] public class VisibleInDetailViewAttribute : ModelExportedBoolValueAttribute
<AttributeUsage(AttributeTargets.Property Or AttributeTargets.Field, Inherited:=True)> Public Class VisibleInDetailViewAttribute Inherits ModelExportedBoolValueAttribute
If you want a particular property of a business class to not be visible in a Detail View that displays objects of this class, apply the VisibleInDetailView attribute to this property, and pass false as the attribute's value parameter. In this instance, a Views | <DetailView> | Layout | LayoutItem node will not be generated for this property in the Application Model. If you do not apply this attribute, a View Item will be generated and arranged according to the XAF internal layout rules (see View Items Layout Customization).
The value passed as the VisibleInDetailView attribute's value parameter, is assigned to the read-only IModelMember.IsVisibleInDetailView property of the Application Model's BOModel | <Class> | OwnMembers | <Member> node. Use the Model Editor, to see whether a particular property is visible in a Detail View.
By default, the value which is passed as the VisibleInListView attribute's value parameter remains in descendants of the target property's class.