# ModelBuilders - Built-in Attributes
Xenial.Framework ModelBuilders have extension methods for almost all of the built-in attributes of XAF.
This table below maps the ModelBuilder extentions to the corresponding implementation in XAF.
TIP
If you are missing an attribute let us know (opens new window)!
You can also implement your own with little effort.
# Class Attributes
# Behavior
Xenial Extension | XAF Attribute |
---|---|
WithDefaultClassOptions() | DefaultClassOptionsAttribute (opens new window) |
HasCaption() | ModelDefaultAttribute("Caption") (opens new window) |
HasImage() | ImageNameAttribute (opens new window) |
HasDefaultProperty() | DefaultPropertyAttribute XafDefaultPropertyAttribute (opens new window) |
HasFriendlyKeyProperty() | FriendlyKeyPropertyAttribute (opens new window) |
HasNavigationItem() | NavigationItemAttribute (opens new window) |
HasObjectCaptionFormat() | ObjectCaptionFormatAttribute (opens new window) |
IsCreatableItem() | CreatableItemAttribute (opens new window) |
IsVisibleInReports() | VisibleInReportsAttribute(true) (opens new window) |
IsNotVisibleInReports() | VisibleInReportsAttribute(false) (opens new window) |
IsVisibleInDashboards() | VisibleInDashboardsAttribute(true) (opens new window) |
IsNotVisibleInDashboards() | VisibleInDashboardsAttribute(false) (opens new window) |
WithDefaultListViewOptions() | DefaultListViewOptionsAttribute (opens new window) |
# ModelDefault
# Xenial specific
Xenial Extension | XAF Attribute |
---|---|
IsSingleton() | SingletonAttribute NotAllowingDelete NotAllowingNew |
# Property Attributes
# Behavior
# Domain-Extensions string
Xenial Extension | XAF Attribute |
---|---|
UsingStringPropertyEditor | EditorAliasAttribute("StringPropertyEditor") (opens new window) |
UsingRichTextPropertyEditor | EditorAliasAttribute("StringPropertyEditor") (opens new window) |
UsingCriteriaPropertyEditor | EditorAliasAttribute("CriteriaPropertyEditor") (opens new window)CriteriaOptionsAttribute (opens new window) |
UsingExtendedCriteriaPropertyEditor | EditorAliasAttribute("ExtendedCriteriaPropertyEditor") (opens new window)CriteriaOptionsAttribute (opens new window) |
UsingPopupCriteriaPropertyEditor | EditorAliasAttribute("PopupCriteriaPropertyEditor") (opens new window)CriteriaOptionsAttribute (opens new window) |
IsPassword | ModelDefaultAttribute("IsPassword", "True") (opens new window) |
WithPredefinedValues | ModelDefaultAttribute("PredefinedValues") (opens new window) |
# Domain-Extensions bool
& bool?
Xenial Extension | XAF Attribute |
---|---|
UsingBooleanPropertyEditor | EditorAliasAttribute("BooleanPropertyEditor") (opens new window) |
WithCaptions | CaptionsForBoolValuesAttribute (opens new window) |
WithImages | ImagesForBoolValuesAttribute (opens new window) |
# Domain-Extensions int
& int?
Xenial Extension | XAF Attribute |
---|---|
UsingIntegerPropertyEditor | EditorAliasAttribute("IntegerPropertyEditor") (opens new window) |
# Domain-Extensions decimal
& decimal?
Xenial Extension | XAF Attribute |
---|---|
UsingDecimalPropertyEditor | EditorAliasAttribute("DecimalPropertyEditor") (opens new window) |
# Domain-Extensions double
& double?
Xenial Extension | XAF Attribute |
---|---|
UsingDoublePropertyEditor | EditorAliasAttribute("DoublePropertyEditor") (opens new window) |
# Domain-Extensions float
& float?
Xenial Extension | XAF Attribute |
---|---|
UsingFloatPropertyEditor | EditorAliasAttribute("FloatPropertyEditor") (opens new window) |
# Domain-Extensions long
& long?
Xenial Extension | XAF Attribute |
---|---|
UsingLongPropertyEditor | EditorAliasAttribute("IntegerPropertyEditor") (opens new window) |
# Domain-Extensions byte
& byte?
Xenial Extension | XAF Attribute |
---|---|
UsingBytePropertyEditor | EditorAliasAttribute("BytePropertyEditor") (opens new window) |
# Domain-Extensions DateTime
& DateTime?
Xenial Extension | XAF Attribute |
---|---|
UsingDateTimePropertyEditor | EditorAliasAttribute("DateTimePropertyEditor") (opens new window) |
# Domain-Extensions TimeSpan
& TimeSpan?
Xenial Extension | XAF Attribute |
---|---|
UsingTimeSpanPropertyEditor | EditorAliasAttribute("TimeSpanPropertyEditor") (opens new window) |
# Domain-Extensions byte[]
& byte[]?
Xenial Extension | XAF Attribute |
---|---|
UsingImagePropertyEditor | EditorAliasAttribute("ImagePropertyEditor") (opens new window) ImageEditorAttribute (opens new window) |
# Domain-Extensions enum
& enum?
Xenial Extension | XAF Attribute |
---|---|
UsingEnumPropertyEditor | EditorAliasAttribute("EnumPropertyEditor") (opens new window) |
# Domain-Extensions object
& object?
Xenial Extension | XAF Attribute |
---|---|
UsingDetailPropertyEditor | EditorAliasAttribute("DetailPropertyEditor") (opens new window) |
UsingLookupPropertyEditor | EditorAliasAttribute("LookupPropertyEditor") (opens new window) |
UsingObjectPropertyEditor | EditorAliasAttribute("ObjectPropertyEditor") (opens new window) |
UsingDefaultPropertyEditor | EditorAliasAttribute("DefaultPropertyEditor") (opens new window) |
# Domain-Extensions Type
& Type?
Xenial Extension | XAF Attribute |
---|---|
UsingTypePropertyEditor | EditorAliasAttribute("TypePropertyEditor") (opens new window) |
UsingVisibleInReportsTypePropertyEditor | EditorAliasAttribute("VisibleInReportsTypePropertyEditor") (opens new window) |
# Domain-Extensions System.Drawing.Color
& System.Drawing.Color?
Xenial Extension | XAF Attribute |
---|---|
UsingColorPropertyEditor | EditorAliasAttribute("ColorPropertyEditor") (opens new window) |
← Advanced Introduction →