mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
Nodes - Inform nodes about the script they're being initialized for Nodes - Added float nodes matching the existing other number types Core - Add API for retrieving data binding values via the interface
34 lines
720 B
C#
34 lines
720 B
C#
using System.Windows;
|
|
using Artemis.Core;
|
|
using Stylet;
|
|
|
|
namespace Artemis.VisualScripting.Nodes.CustomViewModels
|
|
{
|
|
public abstract class CustomNodeViewModel : PropertyChangedBase, IViewAware, ICustomNodeViewModel
|
|
{
|
|
protected CustomNodeViewModel(INode node)
|
|
{
|
|
Node = node;
|
|
}
|
|
|
|
public INode Node { get; }
|
|
|
|
#region Implementation of IViewAware
|
|
|
|
/// <inheritdoc />
|
|
public void AttachView(UIElement view)
|
|
{
|
|
View = view;
|
|
OnDisplay();
|
|
}
|
|
|
|
protected virtual void OnDisplay()
|
|
{
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public UIElement View { get; private set; }
|
|
|
|
#endregion
|
|
}
|
|
} |