mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
Data bindings - Finished main functionality
This commit is contained in:
1 parent
fea454ad12
commit
f03ea410d4
23 files changed
+214
-135
No files matched your search
@@ -22,6 +22,8 @@ namespace Artemis.UI.Screens.ProfileEditor.ProfileTree
|
||||
{
|
||||
_profileEditorService = profileEditorService;
|
||||
_profileTreeVmFactory = profileTreeVmFactory;
|
||||
|
||||
CreateRootFolderViewModel();
|
||||
}
|
||||
|
||||
public TreeItemViewModel SelectedTreeItem
|
||||
@@ -94,17 +96,16 @@ namespace Artemis.UI.Screens.ProfileEditor.ProfileTree
|
||||
ActiveItem?.AddLayer();
|
||||
}
|
||||
|
||||
protected override void OnInitialActivate()
|
||||
protected override void OnActivate()
|
||||
{
|
||||
Subscribe();
|
||||
CreateRootFolderViewModel();
|
||||
base.OnInitialActivate();
|
||||
base.OnActivate();
|
||||
}
|
||||
|
||||
protected override void OnClose()
|
||||
protected override void OnDeactivate()
|
||||
{
|
||||
Unsubscribe();
|
||||
base.OnClose();
|
||||
base.OnDeactivate();
|
||||
}
|
||||
|
||||
private void CreateRootFolderViewModel()
|
||||
@@ -140,7 +141,7 @@ namespace Artemis.UI.Screens.ProfileEditor.ProfileTree
|
||||
{
|
||||
if (parent == source)
|
||||
return DragDropType.None;
|
||||
parent = (TreeItemViewModel) parent.Parent;
|
||||
parent = parent.Parent as TreeItemViewModel;
|
||||
}
|
||||
|
||||
switch (dropInfo.InsertPosition)
|
||||
|
||||
Reference in new issue
Block a user