Back to Devexpress

RepositoryItem.AppearanceFocused Property

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitem-c29cddb6.md

latest3.0 KB
Original Source

RepositoryItem.AppearanceFocused Property

Gets appearance settings used to paint the current editor when it is focused.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Appearance")]
public virtual AppearanceObject AppearanceFocused { get; }
vb
<DXCategory("Appearance")>
Public Overridable ReadOnly Property AppearanceFocused As AppearanceObject

Property Value

TypeDescription
AppearanceObject

A AppearanceObject object which provides the appearance setting used to paint the editor when it’s focused.

|

Remarks

The editor’s appearance settings are controlled by the RepositoryItem.Appearance property. Use the AppearanceFocused property to specify the appearance of the current editor when it’s focused.

To specify the appearance of the editor when it’s disabled, use the RepositoryItem.AppearanceDisabled property.

For more information on appearances, see the Application Appearance and Skin Colors document.

Important

In Advanced Mode or when the WXI Skin is applied, use the Appearance.BackColor property to specify the editor’s background color. Other appearance settings that specify the background color of the editor in different states are ignored (for example, the AppearanceReadOnly.BackColor, AppearanceFocused.BackColor, AppearanceDisabled.BackColor).

csharp
if (textEdit1.Properties.ReadOnly) {
    textEdit1.Properties.Appearance.BackColor = Color.LightGray;
}
vb
If textEdit1.Properties.ReadOnly Then
    textEdit1.Properties.Appearance.BackColor = Color.LightGray
End If

See Also

Appearance

AppearanceDisabled

RepositoryItem Class

RepositoryItem Members

DevExpress.XtraEditors.Repository Namespace