blazor-devexpress-dot-blazor-29d28308.md
Lists the Toolbar’s render style modes.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
public enum ToolbarRenderStyleMode
| Name | Description |
|---|---|
Contained |
The item is always filled with color and has borders.
|
| Plain |
The item is filled with color on hover or click but does not have borders and shadows.
|
The following properties accept/return ToolbarRenderStyleMode values:
The ToolbarItemRenderStyleMode enumeration values specify how the Toolbar component renders its items. Note that the DxToolbarItem.RenderStyleMode property overrides the DxToolbar.ItemRenderStyleMode property value.
In this mode, an item is filled with the color specified by the RenderStyle property and has borders:
<div class="card p-2">
<DxToolbar ItemRenderStyleMode="ToolbarRenderStyleMode.Contained">
<DxToolbarItem Text="Info"
RenderStyle="ButtonRenderStyle.Info" />
<DxToolbarItem Text="Success"
RenderStyle="ButtonRenderStyle.Success" />
</DxToolbar>
</div>
In this mode, an item is filled with the toolbar’s background color and does not have borders or shadows. The color on hover or click is specified by the RenderStyle property:
<div class="card p-2">
<DxToolbar ItemRenderStyleMode="ToolbarRenderStyleMode.Plain">
<DxToolbarItem Text="Info"
RenderStyle="ButtonRenderStyle.Info" />
<DxToolbarItem Text="Success"
RenderStyle="ButtonRenderStyle.Success" />
</DxToolbar>
</div>
Run Demo: Toolbar - Render Style
See Also