Ejemplo n.º 1
0
        internal NodeItem(StateContainer stateContainer)
        {
            if (!DesignerProperties.GetIsInDesignMode(this))
            {
                myStateContainer = stateContainer;

                EditCommand = new DelegateCommand(() => IsInEditMode = true, () =>
                {
                    var expr = GetBindingExpression(TextProperty);
                    return(expr != null && expr.ParentBinding.Mode == BindingMode.TwoWay);
                });

                Loaded += OnLoaded;
            }
        }
Ejemplo n.º 2
0
 public NodeState(INode dataContext, StateContainer container)
 {
     DataContext = dataContext;
     myContainer = container;
 }
 public ExtendedTreeView()
 {
     StateContainer = new StateContainer();
 }