ComponentList 개발 중
This commit is contained in:
@@ -27,7 +27,7 @@ namespace UVC.UI.Menu
|
||||
/// `ICommand` 인터페이스를 구현하는 객체여야 합니다.
|
||||
/// 실행할 동작이 없는 경우 null일 수 있습니다.
|
||||
/// </summary>
|
||||
public ICommand Command { get; private set; }
|
||||
public ICommand? Command { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// <see cref="Command"/> 실행 시 전달될 파라미터입니다.
|
||||
@@ -35,12 +35,19 @@ namespace UVC.UI.Menu
|
||||
/// </summary>
|
||||
public object? CommandParameter { get; set; }
|
||||
|
||||
public ContextMenuItemData(string ItemId, string DisplayName, ICommand Command, string CommandParameter = null)
|
||||
/// <summary>
|
||||
/// 이 메뉴 아이템이 시각적인 구분선인지 여부를 나타냅니다.
|
||||
/// `true`이면 메뉴 UI에서 다른 아이템들과 구분되는 선으로 표시됩니다.
|
||||
/// </summary>
|
||||
public bool IsSeparator { get; private set; }
|
||||
|
||||
public ContextMenuItemData(string itemId = "", string displayName = "", ICommand? command = null, object? commandParameter = null, bool isSeparator = false)
|
||||
{
|
||||
this.ItemId = ItemId;
|
||||
this.DisplayName = DisplayName;
|
||||
this.Command = Command;
|
||||
this.CommandParameter = CommandParameter;
|
||||
this.ItemId = itemId;
|
||||
this.DisplayName = displayName;
|
||||
this.Command = command;
|
||||
this.CommandParameter = commandParameter;
|
||||
this.IsSeparator = isSeparator;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user