Class ComboBoxTokenItem
Represents the container for the items that are generated in the selection area of SfComboBox control in multiple selection token mode.
Inherited Members
Namespace: Syncfusion.UI.Xaml.Editors
Assembly: Syncfusion.Editors.WinUI.dll
Syntax
public class ComboBoxTokenItem : TokenItem
Examples
The following example shows how to customize the style of ComboBoxTokenItem generated in the selection area of ComboBox control.
<Grid>
<Grid.DataContext>
<local:ComboBoxViewModel/>
</Grid.DataContext>
<editors:SfComboBox SelectionMode="Multiple"
MultiSelectionDisplayMode="Token"
ItemsSource="{Binding Sports}"
TextMemberPath="Name"
DisplayMemberPath="Name">
<editors:SfComboBox.TokenItemStyle>
<Style TargetType = "editors:ComboBoxTokenItem" >
<Setter Property="Foreground" Value="Red"/>
<Setter Property = "Background" Value="LightCyan"/>
</Style>
</editors:SfComboBox.TokenItemStyle>
</editors:SfComboBox>
</Grid>
Constructors
ComboBoxTokenItem()
Initializes a new instance of the ComboBoxTokenItem class.
Declaration
public ComboBoxTokenItem()