Skip to main content

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

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