Asv.Avalonia.Docs Help

Action View Model

Overview

ActionViewModel is a view model that extends HeadlinedViewModel and adds action functionality. It is often used for menu items that trigger commands.

API

ActionViewModel

Represents a view model that supports an actionable command, inheriting header, icon, and description properties.

Property

Type

Description

Command

ICommand?

Gets or sets the action that is executed when the view model is activated.

CommandParameter

object?

Gets the parameter passed to the command when executed.

Last modified: 18 January 2026