public ActivityBuilderXamlWriter(XamlWriter innerWriter)
     : base()
 {
     this.innerWriter = innerWriter;
     this.currentState = new RootNode(this);
     this.namespaceTable = new NamespaceTable();
 }
Esempio n. 2
0
 private void PushState(BuilderXamlNode state)
 {
     if (this.pendingStates == null)
     {
         this.pendingStates = new Stack <BuilderXamlNode>();
     }
     this.pendingStates.Push(this.currentState);
     this.currentState = state;
 }
 private void PushState(BuilderXamlNode state)
 {
     if (this.pendingStates == null)
     {
         this.pendingStates = new Stack<BuilderXamlNode>();
     }
     this.pendingStates.Push(this.currentState);
     this.currentState = state;
 }
Esempio n. 4
0
 private void ExitDepth()
 {
     if (this.currentState.Depth == this.currentDepth)
     {
         this.currentState.Complete();
         if (this.pendingStates.Count > 0)
         {
             this.currentState = this.pendingStates.Pop();
         }
     }
     this.currentDepth--;
     if (this.namespaceTable != null)
     {
         this.namespaceTable.ExitScope();
     }
 }
 private void ExitDepth()
 {
     if (this.currentState.Depth == this.currentDepth)
     {
         this.currentState.Complete();
         if (this.pendingStates.Count > 0)
         {
             this.currentState = this.pendingStates.Pop();
         }
     }
     this.currentDepth--;
     if (this.namespaceTable != null)
     {
         this.namespaceTable.ExitScope();
     }
 }
        void ExitDepth()
        {
            Fx.Assert(!this.notRewriting, "we only use depth calculation if we're rewriting");
            if (this.currentState.Depth == this.currentDepth)
            {
                // complete the current state
                this.currentState.Complete();

                // and pop off the next state to look for
                if (this.pendingStates.Count > 0)
                {
                    this.currentState = this.pendingStates.Pop();
                }
            }
            this.currentDepth--;
            if (this.namespaceTable != null)
            {
                this.namespaceTable.ExitScope();
            }
        }
Esempio n. 7
0
 public ActivityBuilderXamlWriter(XamlWriter innerWriter)
 {
     this.innerWriter    = innerWriter;
     this.currentState   = new RootNode(this);
     this.namespaceTable = new NamespaceTable();
 }