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.v22.2.dll

NuGet Package: DevExpress.Win.Navigation


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.


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.


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).

See Also