ComboBox as the attribute of a Node

Aug 20, 2012 at 8:51 AM
Edited Aug 20, 2012 at 8:51 AM

Hello all,

I want to add an attribute to a node which can be changed (preferrably selected from a dropdown list).

Can anyone give a me a hint how to do that?

Best,

Bartek.

Sep 24, 2012 at 8:22 AM

First,you should create Enum Object, For e.g.

   public enum Status
 {
  Default = 0,
  Updating = 1,
  DragEnter = 2,
  DragOver = 3,
  DragDrop = 4,
  DragScroll = 5,
  Animate = 6,
  UndoRedo = 7,
  Custom = 8
 }

Second, you should create a Property for Node:

   public virtual Status XXXX {get;set;}