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.v20.1.dll

Declaration

[DXCategory("Appearance")]
[DefaultValue(true)]
public virtual bool AllowFocused { get; set; }
<DXCategory("Appearance")>
<DefaultValue(True)>
Public Overridable Property AllowFocused As Boolean

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

See Also