Back to Devexpress

Chip.ContentTemplate Property

maui-devexpress-dot-maui-dot-editors-dot-chip-b9e77e24.md

latest1.6 KB
Original Source

Chip.ContentTemplate Property

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

Declaration

csharp
public DataTemplate ContentTemplate { get; set; }

Property Value

TypeDescription
DataTemplate

The data template applied to the content.

|

Remarks

The following code sample uses the ContentTemplate property to define a custom template for the content area:

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

Chip Class

Chip Members

DevExpress.Maui.Editors Namespace