Expand folder icon example

This commit is contained in:
Unknown
2018-01-26 22:16:45 +00:00
parent e6736afa2c
commit 036f2cb722
3 changed files with 4 additions and 15 deletions

View File

@ -16,6 +16,8 @@ namespace WpfTreeView
/// </summary>
public DirectoryItemType Type { get; set; }
public string ImageName => Type == DirectoryItemType.Drive ? "drive" : (Type == DirectoryItemType.File ? "file" : (IsExpanded ? "folder-open" : "folder-closed"));
/// <summary>
/// The full path to the item
/// </summary>