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

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

C#
public DataTemplate ContentTemplate { get; set; }

#Property Value

Type Description
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:

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

DevExpress .NET MAUI Chips - ContentTemplate Property

See Also