Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

AutoCompleteEdit.AffixColor Property

Gets or sets the color of the Prefix and Suffix text. This is a bindable property.

Namespace: DevExpress.Maui.Editors

Assembly: DevExpress.Maui.Editors.dll

NuGet Package: DevExpress.Maui.Editors

#Declaration

C#
public Color AffixColor { get; set; }

#Property Value

Type Description
Color

The prefix and suffix text color.

#Remarks

Use the AffixColor property to change the color of the editor’s prefix and suffix. The DisabledAffixColor property specifies the prefix/suffix color for the editor in the disabled state (the editor’s IsEnabled property is set to false).

You can also use the AffixFontSize, AffixFontAttributes, and AffixFontFamily properties to customize the editor’s prefix/suffix text font, and AffixIndent to specify the distance between the affix and the input text.

#Example

The following markup configures AutoCompleteEdit prefix settings. The same settings are applied to Suffix if it is specified:

<dxe:AutoCompleteEdit LabelText="State"
                      PlaceholderText="Type here to search..."
                      Margin="16,0" 
                      AffixFontFamily="Univia-Pro" 
                      AffixFontSize="20"
                      AffixIndent="20"
                      AffixColor="Black"
                      Prefix="State: ">
    <!--...-->
</dxe:AutoCompleteEdit>
See Also