ui/wpf/UIcore/Container.cs

changeset 135
b9dc9cdfa23a
parent 104
3efe0210e27e
child 136
1df2fb3d079c
equal deleted inserted replaced
134:69e8e0936858 135:b9dc9cdfa23a
143 y++; 143 y++;
144 } 144 }
145 145
146 Layout.Reset(); 146 Layout.Reset();
147 } 147 }
148
149 public static BoxContainer CreateBoxContainer(Container parent, BoxOrientation orientation)
150 {
151 return Application.GetInstance().Exec<BoxContainer>(() => new BoxContainer(parent, orientation));
152 }
153 } 148 }
154 149
155 public class GridContainer : Grid, Container 150 public class GridContainer : Grid, Container
156 { 151 {
157 public Layout Layout { get; set; } 152 public Layout Layout { get; set; }
250 Children.Add(control); 245 Children.Add(control);
251 246
252 Layout.Reset(); 247 Layout.Reset();
253 X++; 248 X++;
254 } 249 }
255
256 public static GridContainer CreateGridContainer(Container parent, int margin, int colspacing, int rowspacing)
257 {
258 return Application.GetInstance().Exec<GridContainer>(() => new GridContainer(parent, margin, colspacing, rowspacing));
259 }
260 } 250 }
261 } 251 }

mercurial