Class NodeViewModel
Viewmodel class for the nodes in the network
Inheritance
Implements
Inherited Members
Namespace: NodeNetwork.ViewModels
Assembly: NodeNetwork.dll
Syntax
public class NodeViewModel : ReactiveObject, IReactiveNotifyPropertyChanged<IReactiveObject>, IHandleObservableErrors, IReactiveObject, INotifyPropertyChanged, INotifyPropertyChanging, IEnableLogger
Constructors
| Improve this Doc View SourceNodeViewModel()
Declaration
public NodeViewModel()
Properties
| Improve this Doc View SourceCanBeRemovedByUser
If true, the user can delete this node from the network in the UI. True by default.
Declaration
public bool CanBeRemovedByUser { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
EndpointGroupViewModelFactory
The function that is used to create endpoint group view models. By default, this function creates a EndpointGroupViewModel.
Declaration
public EndpointGroupViewModelFactory EndpointGroupViewModelFactory { get; set; }
Property Value
Type | Description |
---|---|
EndpointGroupViewModelFactory |
HeaderIcon
The icon displayed in the header of the node. If this is null, no icon is displayed. In the default view, this icon is displayed at the top of the node.
Declaration
public IBitmap HeaderIcon { get; set; }
Property Value
Type | Description |
---|---|
Splat.IBitmap |
Inputs
The list of inputs on this node.
Declaration
public ISourceList<NodeInputViewModel> Inputs { get; }
Property Value
Type | Description |
---|---|
DynamicData.ISourceList<NodeInputViewModel> |
IsCollapsed
If true, this node is currently collapsed. If the node is collapsed, some parts of the node are hidden to provide a more compact view.
Declaration
public bool IsCollapsed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsSelected
If true, this node is currently selected in the UI.
Declaration
public bool IsSelected { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Name
The name of the node. In the default view, this string is displayed at the top of the node.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Outputs
The list of outputs on this node.
Declaration
public ISourceList<NodeOutputViewModel> Outputs { get; }
Property Value
Type | Description |
---|---|
DynamicData.ISourceList<NodeOutputViewModel> |
Parent
The network that contains this node
Declaration
public NetworkViewModel Parent { get; }
Property Value
Type | Description |
---|---|
NetworkViewModel |
Position
The position of this node in the network.
Declaration
public Point Position { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Point |
Resizable
On which axes can the user resize the node?
Declaration
public ResizeOrientation Resizable { get; set; }
Property Value
Type | Description |
---|---|
ResizeOrientation |
Size
The rendered size of this node.
Declaration
public Size Size { get; }
Property Value
Type | Description |
---|---|
System.Windows.Size |
VisibleEndpointGroups
The list of endpoint groups that is currently visible on this node. Some groups may be hidden if the node is collapsed.
Declaration
public ReadOnlyObservableCollection<EndpointGroupViewModel> VisibleEndpointGroups { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ReadOnlyObservableCollection<EndpointGroupViewModel> |
VisibleInputs
The list of inputs that is currently visible on this node. Some inputs may be hidden if the node is collapsed.
Declaration
public IObservableList<NodeInputViewModel> VisibleInputs { get; }
Property Value
Type | Description |
---|---|
DynamicData.IObservableList<NodeInputViewModel> |
VisibleOutputs
The list of outputs that is currently visible on this node. Some outputs may be hidden if the node is collapsed.
Declaration
public IObservableList<NodeOutputViewModel> VisibleOutputs { get; }
Property Value
Type | Description |
---|---|
DynamicData.IObservableList<NodeOutputViewModel> |