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