Added layer properties to core and hooked it up with the UI

Implemented timeline caret scrolling logic
Added special treeview style for the layer properties tree
This commit is contained in:
Robert committed 2020-01-06 16:01:35 +01:00
1 parent 14065bffef
commit 59f0062c97
48 files changed
+618 -381

No files matched your search

@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.Generic;
using Artemis.Core.Models.Profile;
using Stylet;
@@ -10,13 +6,21 @@ namespace Artemis.UI.Screens.Module.ProfileEditor.LayerProperties
{
public class LayerPropertyViewModel : PropertyChangedBase
{
public LayerProperty LayerProperty { get; }
public LayerPropertyViewModel(LayerProperty layerProperty)
public LayerPropertyViewModel(LayerProperty layerProperty, LayerPropertyViewModel parent)
{
LayerProperty = layerProperty;
Parent = parent;
Children = new List<LayerPropertyViewModel>();
foreach (var child in layerProperty.Children)
Children.Add(new LayerPropertyViewModel(child, this));
}
public bool IsCollapsed { get; set; }
public LayerProperty LayerProperty { get; }
public LayerPropertyViewModel Parent { get; }
public List<LayerPropertyViewModel> Children { get; set; }
public bool IsExpanded { get; set; }
}
}