-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added icons to the file bundle view.
- Loading branch information
1 parent
658fd11
commit bdfc945
Showing
5 changed files
with
129 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
108 changes: 78 additions & 30 deletions
108
...niversalAssetTool/UniversalAssetTool.Ui.Avalonia/common/treeViews/FilterTreeView.axaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...Tool/UniversalAssetTool.Ui.Avalonia/common/treeViews/FilterTreeViewViewModelInterfaces.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System; | ||
using System.Collections.ObjectModel; | ||
|
||
using Avalonia.Media; | ||
|
||
using uni.ui.avalonia.ViewModels; | ||
|
||
namespace uni.ui.avalonia.common.treeViews { | ||
// Top-level view model types | ||
|
||
public interface IFilterTreeViewViewModel : IViewModelBase { | ||
void ChangeSelection(INode node); | ||
} | ||
|
||
public interface IFilterTreeViewViewModel<T> : IFilterTreeViewViewModel { | ||
event EventHandler<INode<T>>? NodeSelected; | ||
} | ||
|
||
// Node types | ||
public interface INode : IViewModelBase { | ||
IImage? Icon { get; } | ||
string Label { get; } | ||
} | ||
|
||
public interface INode<T> : INode { | ||
ObservableCollection<INode<T>>? SubNodes { get; } | ||
} | ||
} |