using System.Windows.Input; namespace ytLive.ViewModels; /// /// One Add-Source menu entry: a label, its action, and an optional command /// parameter. The collection is rebuilt per scene from /// so only the sources the active /// scene allows appear in the menu. /// public sealed class SourceMenuItem { public SourceMenuItem(string header, ICommand command, object? parameter = null, bool isEnabled = true, string? toolTip = null) { Header = header; Command = command; Parameter = parameter; IsEnabled = isEnabled; ToolTip = toolTip; } public string Header { get; } public ICommand Command { get; } public object? Parameter { get; } public bool IsEnabled { get; } public string? ToolTip { get; } }