Back to Devexpress

DxRadioGroup<TData, TValue>.ChildContent Property

blazor-devexpress-dot-blazor-dot-dxradiogroup-2-e4fad81f.md

latest1.7 KB
Original Source

DxRadioGroup<TData, TValue>.ChildContent Property

Specifies content above auto-generated items.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[Parameter]
public RenderFragment ChildContent { get; set; }

Property Value

TypeDescription
RenderFragment

Content markup.

|

Remarks

The ChildContent component parameter can store custom component content that does not belong to other component’s RenderFragment properties as shown below:

razor
<DxRadioGroup Items="@Languages"
              @bind-Value="@PreferredLanguage">
    <ChildContent>
        Select your preferred language:
    </ChildContent>
</DxRadioGroup>

Note

Since ChildContent contains nested markup of its parent class, the template content must conform to HTML semantics.

You can omit the <ChildContent> tag and specify the markup directly in the <DxRadioGroup> tag:

razor
<DxRadioGroup Items="@Languages"
              @bind-Value="@PreferredLanguage">
    Select your preferred language:
</DxRadioGroup>

See Also

DxRadioGroup<TData, TValue> Class

DxRadioGroup<TData, TValue> Members

DevExpress.Blazor Namespace