Skip to main content

RepositoryItem.AllowFocused Property

Gets or sets a value specifying whether the focus rectangle is displayed within the editor when it has focus.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.2.dll

Declaration

[DefaultValue(true)]
[DXCategory("Appearance")]
public virtual bool AllowFocused { get; set; }

Property Value

Type Default Description
Boolean true

true if the focus rectangle is displayed when the editor has focus; otherwise, false.

Remarks

The editor cannot be focused if it is disabled (the RepositoryItem.Enabled property is set to false).

Changing the AllowFocused property value raises the RepositoryItem.PropertiesChanged event.

For focused standalone ButtonEdit controls and their descendants, focus is indicated by a dotted frame, provided that the AllowFocused property is set to true and the RepositoryItemButtonEdit.TextEditStyle property is set to TextEditStyles.DisableTextEditor. In other cases, no dotted focus frame is painted.

Note

This property is in effect only when the editor is in stand-alone mode. When used for in-place editing in data-aware controls (Data Grid, Vertical Grid, Tree List, etc.), this property is ignored and you should use related settings of the data-aware control instead (e.g., the TreeListOptionsView.ShowFocusedFrame property).

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AllowFocused property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also