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

ChipGroup.ChipContentTemplate Property

Gets or sets a content template of chips in the group. This is a bindable property.

Namespace: DevExpress.Maui.Editors

Assembly: DevExpress.Maui.Editors.dll

NuGet Package: DevExpress.Maui.Editors

#Declaration

C#
public DataTemplate ChipContentTemplate { get; set; }

#Property Value

Type Description
DataTemplate

The data template applied to the chip’s content.

#Remarks

The following snippet changes the appearance of Chip content in a group depending on the Chip element state:

<dxe:ChoiceChipGroup.ChipContentTemplate>
    <DataTemplate>
            <Label Text="{Binding Name}" TextColor="Yellow" FontAttributes="Italic">
                <Label.Triggers>
                    <DataTrigger TargetType="Label" 
                                Binding="{Binding Source={RelativeSource Mode=FindAncestor, AncestorType={x:Type dxe:Chip}}, Path=IsSelected}"
                                Value="True">
                        <Setter Property="TextColor" Value="Green"/>
                    </DataTrigger>
                </Label.Triggers>
            </Label>
    </DataTemplate>
</dxe:ChoiceChipGroup.ChipContentTemplate>
See Also