示例#1
0
        public InjectStateNode(Node?parent, Context context, InjectStateBase <TState> element) : base(parent, context, element)
        {
            state = element.NewState();
            element.AddListener(state, State_PropertyChanged);

            var childElement = element.Callback(state);

            child = childElement.CreateNode(this, context);
        }
示例#2
0
 protected override void UpdateElement(InjectStateBase <TState> oldElement, Context oldContext) => UpdateState();