Example #1
0
 public void ConsumeInstruction(FlowLayoutInstruction instruction)
 {
     if (instruction == FlowLayoutInstruction.Linebreak)
     {
         if (HasRoomForAnotherRow(LayoutNode.NamelessLeaf(LayoutSize.Pixels(0, 0))))
         {
             AddNewRow();
         }
     }
 }
Example #2
0
 public LayoutNodeOrInstruction(FlowLayoutInstruction flowInstruction)
 {
     InternalInstruction = flowInstruction;
 }