mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Shared UI - Flattened namespaces Shared UI - General housekeeping Project - Code cleanup
36 lines
1016 B
C#
36 lines
1016 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Artemis.Core;
|
|
using Stylet;
|
|
|
|
namespace Artemis.UI.Screens.ProfileEditor.LayerProperties.Abstract
|
|
{
|
|
public abstract class LayerPropertyBaseViewModel : PropertyChangedBase, IDisposable
|
|
{
|
|
private BindableCollection<LayerPropertyBaseViewModel> _children;
|
|
private bool _isExpanded;
|
|
|
|
protected LayerPropertyBaseViewModel()
|
|
{
|
|
Children = new BindableCollection<LayerPropertyBaseViewModel>();
|
|
}
|
|
|
|
public abstract bool IsVisible { get; }
|
|
|
|
public virtual bool IsExpanded
|
|
{
|
|
get => _isExpanded;
|
|
set => SetAndNotify(ref _isExpanded, value);
|
|
}
|
|
|
|
public BindableCollection<LayerPropertyBaseViewModel> Children
|
|
{
|
|
get => _children;
|
|
set => SetAndNotify(ref _children, value);
|
|
}
|
|
|
|
public abstract void Dispose();
|
|
|
|
public abstract List<BaseLayerPropertyKeyframe> GetKeyframes(bool expandedOnly);
|
|
}
|
|
} |