19 lines
566 B
C#
19 lines
566 B
C#
using CommunityToolkit.Mvvm.ComponentModel;
|
|
using CommunityToolkit.Mvvm.Input;
|
|
|
|
namespace Hyperbar;
|
|
|
|
public partial class WidgetButtonViewModel(IServiceFactory serviceFactory,
|
|
IMediator mediator,
|
|
IDisposer disposer,
|
|
ITemplateFactory templateFactory,
|
|
Guid guid = default,
|
|
string? icon = null,
|
|
RelayCommand? command = null) : WidgetComponentViewModel(serviceFactory, mediator, disposer, templateFactory, guid)
|
|
{
|
|
[ObservableProperty]
|
|
private string? icon = icon;
|
|
|
|
[ObservableProperty]
|
|
private IRelayCommand? click = command;
|
|
} |