Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions MAUI/Autocomplete/UI-Customization.md
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,38 @@ SfAutocomplete autocomplete = new SfAutocomplete()

![.NET MAUI Autocomplete Selected DropDown Item Background](Images/UICustomization/SelectedDropDownItemBackground.png)

### Customize the Selected DropDown Item Text Style

The [SelectedDropDownItemTextStyle]() property in the SfAutoComplete control allows developers to customize the appearance of the selected item in the dropdown list. This feature is useful for highlighting user selections and improving the overall UI experience.

{% tabs %}
{% highlight xaml %}

<editors:SfAutocomplete x:Name="autoComplete" DisplayMemberPath = "Name" TextMemberPath = "Name" ItemsSource="{Binding SocialMedias}">
<editors:SfAutocomplete.SelectedDropDownItemTextStyle>
<editors:DropDownTextStyle TextColor="Orange" FontSize="16" FontAttributes="Bold"/>
</editors:SfAutocomplete.SelectedDropDownItemTextStyle>
</editors:SfAutocomplete>

{% endhighlight %}
{% highlight C# %}

SfAutocomplete autoComplete = new SfAutocomplete
{
ItemsSource = socialMediaViewModel.SocialMedias,
DisplayMemberPath = "Name",
TextMemberPath = "Name",
SelectedDropDownItemTextStyle = new DropDownTextStyle
{
TextColor = Colors.Orange,
FontSize = 16,
FontAttributes = FontAttributes.Bold
}
};

{% endhighlight %}
{% endtabs %}

### Customize the DropDown Border Color

The [DropDownStroke](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Inputs.DropDownControls.DropDownListBase.html#Syncfusion_Maui_Inputs_DropDownControls_DropDownListBase_DropDownStroke) property is used to modify the border color of the dropdown.
Expand Down
38 changes: 38 additions & 0 deletions MAUI/ComboBox/UI-Customization.md
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,44 @@ SfComboBox comboBox = new SfComboBox()

![.NET MAUI ComboBox Selected DropDown Item Background](Images/UICustomization/SelectedDropDownItemBackground.png)

### Customize the Selected DropDown Item Text Style

The [SelectedDropDownItemTextStyle]() property in the SfComboBox control allows developers to customize the appearance of the selected item in the dropdown list. This feature is useful for highlighting user selections and improving the overall UI experience.

{% tabs %}
{% highlight xaml %}

<editors:SfComboBox x:Name="comboBox"
ItemsSource="{Binding SocialMedias}"
DisplayMemberPath="Name"
TextMemberPath="Name"
Placeholder="Enter Media">
<editors:SfComboBox.SelectedDropDownItemTextStyle>
<editors:DropDownTextStyle TextColor="Orange" FontSize="16" FontAttributes="Bold"/>
</editors:SfComboBox.SelectedDropDownItemTextStyle>
</editors:SfComboBox>

{% endhighlight %}

{% highlight C# %}

SfComboBox comboBox = new SfComboBox()
{
ItemsSource = socialMediaViewModel.SocialMedias,
TextMemberPath = "Name",
DisplayMemberPath = "Name",
Placeholder="Enter Media",
SelectedDropDownItemTextStyle = new DropDownTextStyle
{
TextColor = Colors.Orange,
FontSize = 16,
FontAttributes = FontAttributes.Bold
}
};

{% endhighlight %}
{% endtabs %}

### Customize the DropDown Border Color

The [DropDownStroke](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Inputs.DropDownControls.DropDownListBase.html#Syncfusion_Maui_Inputs_DropDownControls_DropDownListBase_DropDownStroke) property is used to modify the border color of the dropdown.
Expand Down