maui-devexpress-dot-maui-dot-editors-dot-chipgroup-de6d804b.md
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
public DataTemplate ChipContentTemplate { get; set; }
| Type | Description |
|---|---|
| DataTemplate |
The data template applied to the chip’s content.
|
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