maui-devexpress-dot-maui-dot-editors-dot-chip-b9e77e24.md
Gets or sets a template that configures the appearance of the content (text) area. This is a bindable property.
Namespace : DevExpress.Maui.Editors
Assembly : DevExpress.Maui.Editors.dll
NuGet Package : DevExpress.Maui.Editors
public DataTemplate ContentTemplate { get; set; }
| Type | Description |
|---|---|
| DataTemplate |
The data template applied to the content.
|
The following code sample uses the ContentTemplate property to define a custom template for the content area:
<Grid>
<dxe:ChoiceChipGroup>
<dxe:Chip SelectedBackgroundColor="#FF8F00" HeightRequest="40">
<dxe:Chip.ContentTemplate>
<DataTemplate>
<HorizontalStackLayout>
<Label Text="Orange " TextColor="#0C0C0C"/>
<Label Text="(3)" TextColor="#0C0C0C" FontAttributes="Bold"/>
</HorizontalStackLayout>
</DataTemplate>
</dxe:Chip.ContentTemplate>
</dxe:Chip>
</dxe:ChoiceChipGroup>
</Grid>
See Also