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 => UndoTreeText.WithDetail(Text, Detail); public Thickness Margin => new(Level * UndoTreeLayout.IndentWidth, 0, 0, 0); }