A menu item component used within RadzenProfileMenu to define individual navigation or action items. RadzenProfileMenuItem represents one clickable item in a profile menu dropdown with support for icons, navigation, and custom content. Used inside RadzenProfileMenu to create user profile dropdown menus. Each item can navigate to a page (via Path), trigger an action (via click event), or display custom content (via Template). Common uses in profile menus include account settings, user profile page, logout/sign out, preferences, and help/documentation. Items support icons, images, text, and custom templates for flexible rendering.
IComponent
IHandleEvent
IHandleAfterRender
RadzenComponent.SetParametersAsync
RadzenComponent.OnAfterRenderAsync
RadzenComponent.RaiseContextMenu
RadzenComponent.RaiseMouseEnter
RadzenComponent.AddContextMenu
RadzenComponent.RaiseMouseLeave
RadzenComponent.OnBecameInvisible
RadzenComponent.DefaultCulture
RadzenComponent.IsJSRuntimeAvailable
ComponentBase.OnInitializedAsync
ComponentBase.OnParametersSet
ComponentBase.OnParametersSetAsync
ComponentBase.StateHasChanged
ComponentBase.ShouldRender
ComponentBase.OnAfterRender
ComponentBase.InvokeAsync
ComponentBase.DispatchExceptionAsync
ComponentBase.RendererInfo
ComponentBase.Assets
ComponentBase.AssignedRenderMode
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
public class RadzenProfileMenuItem : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRenderProfile menu items in a profile menu:
<RadzenProfileMenu>
<Template>
<RadzenIcon Icon="account_circle" /> John Doe
</Template>
<ChildContent>
<RadzenProfileMenuItem Text="Profile" Icon="person" Path="/profile" />
<RadzenProfileMenuItem Text="Settings" Icon="settings" Path="/settings" />
<RadzenProfileMenuItem Text="Logout" Icon="logout" Value="logout" />
</ChildContent>
</RadzenProfileMenu>A menu item component used within RadzenProfileMenu to define individual navigation or action items. RadzenProfileMenuItem represents one clickable item in a profile menu dropdown with support for icons, navigation, and custom content. Used inside RadzenProfileMenu to create user profile dropdown menus. Each item can navigate to a page (via Path), trigger an action (via click event), or display custom content (via Template). Common uses in profile menus include account settings, user profile page, logout/sign out, preferences, and help/documentation. Items support icons, images, text, and custom templates for flexible rendering.
public RadzenProfileMenuItem()Gets or sets the icon.
public string Icon { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the icon. |
Gets or sets the icon color.
public string IconColor { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the icon color. |
Gets or sets the image.
public string Image { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the image. |
Gets or sets the text.
public string ImageAlternateText { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the text. |
Gets or sets the navigation link match.
public Routing.NavLinkMatch Match { get; set; }
| Type | Description |
|---|---|
| Routing.NavLinkMatch | Gets or sets the navigation link match. |
Gets or sets the menu.
public RadzenProfileMenu Menu { get; set; }
| Type | Description |
|---|---|
| RadzenProfileMenu | Gets or sets the menu. |
Gets or sets the parent.
public RadzenProfileMenu Parent { get; set; }
| Type | Description |
|---|---|
| RadzenProfileMenu | Gets or sets the parent. |
Gets or sets the path.
public string Path { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the path. |
Gets or sets the target.
public string Target { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the target. |
Gets or sets the template.
public RenderFragment Template { get; set; }
| Type | Description |
|---|---|
| RenderFragment | Gets or sets the template. |
Gets or sets the text.
public string Text { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the text. |
Gets or sets the value.
public string Value { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the value. |
protected override void BuildRenderTree(Rendering.RenderTreeBuilder __builder)
| Type | Name | Description |
|---|---|---|
| Rendering.RenderTreeBuilder | __builder |
protected override string GetComponentCssClass()
| Type | Description |
|---|---|
| string |
Handles the click event.
public Task OnClick(MouseEventArgs args)
| Type | Name | Description |
|---|---|---|
| MouseEventArgs | args | The MouseEventArgs instance containing the event data. |
| Type | Description |
|---|---|
| Task |