ファイル
YMM4-UndoTree/UndoTree/UndoTreeDetailItemViewModel.cs
T

20 行
494 B
C#

using System.Windows;
using YukkuriMovieMaker.Commons;
namespace UndoTree;
internal class UndoTreeDetailItemViewModel(string text, string detail, int level, bool isGroup) : Bindable
{
public string Text { get; } = text;
public string Detail { get; } = detail;
public int Level { get; } = level;
public bool IsGroup { get; } = isGroup;
public string Display => Detail.Length > 0 ? $"{Text}: {Detail}" : Text;
public Thickness Margin => new(Level * 16, 0, 0, 0);
}