JD2022-TU1/main/tools/modules/JD.SceneExplorer/ViewModels/SceneExplorerTreeViewModel.cs

51 lines
No EOL
1.4 KiB
C#

using System.Collections.ObjectModel;
using System.Windows.Input;
using JD.Interfaces.Models;
using JD.SceneExplorer.Controls;
using JD.WPF.Models;
using Plume.WPF.Mvvm;
using SceneExplorer.Commands;
namespace JD.SceneExplorer.ViewModels
{
public class SceneExplorerTreeViewModel : BindableBase
{
private RootSceneTree _mainScene;
public RootSceneTree MainScene
{
get => _mainScene;
set
{
SetProperty(ref _mainScene, value);
}
}
private TagCollection _tagCollection;
public TagCollection TagCollection
{
get => _tagCollection;
set => SetProperty(ref _tagCollection, value);
}
private ObservableCollection<ITreeViewItemData> _dataList;
public ObservableCollection<ITreeViewItemData> DataList
{
get => _dataList;
set => SetProperty(ref _dataList, value);
}
//todo change this to get the selector Data to TagCollection
public TagSelectorData<ObjectWithRef> SelectorData
{
get;
set;
}
public ICommand GotoFileCommand { get; } = new GoToFileCommand();
public ICommand RenameObjectCommand { get; } = new RenameObjectCommand();
public ICommand OpenInspectorCommand{ get; } = new OpenInspectorCommand();
}
}