示例#1
0
 public ListView ListView(int x, int y,
                          int sizeX, int sizeY,
                          Orientation orientation,
                          IHorizontalAlignable horizontalAlignment,
                          IVerticalAlignable verticalAlignment,
                          IAlignmentTransition alignmentTransition,
                          IColorPattern pattern = null,
                          params AControl[] controls)
 {
     return(controlFactory.CreateListView(GetTexture(sizeX, sizeY, pattern ?? Pattern.SolidColor(Color.White)),
                                          new Region(new Vector2(x, y),
                                                     new Vector2(sizeX, sizeY)),
                                          orientation,
                                          new AlignmentContext(horizontalAlignment, verticalAlignment, alignmentTransition),
                                          controls.ToList().AsReadOnly()));
 }