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
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