DxRibbon.ChildContent Property
Specifies the ribbon element collection.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v25.1.dll
NuGet Package: DevExpress.Blazor
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
| Type | Description |
|---|---|
| RenderFragment | Layout elements. |
Remarks
Blazor automatically generates the ChildContent property when you specify tabs between <DxRibbon>…<DxRibbon> tags:
<DxRibbon>
<ChildContent>
<DxRibbonTab Text="Tab Text">
<DxRibbonGroup Text="Group Text">
<DxRibbonItem Text="Item Text" />
</DxRibbonGroup>
</DxRibbonTab>
</ChildContent>
</DxRibbon>
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 layout elements directly in the <DxRibbon> tag:
<DxRibbon>
<DxRibbonTab Text="Tab Text">
<DxRibbonGroup Text="Group Text">
<DxRibbonItem Text="Item Text" />
</DxRibbonGroup>
</DxRibbonTab>
</DxRibbon>
See Also