public void ShowAGroupOf3x3Items_OutterGroupIsHorizontal() { LayoutGroup outterGroup = new LayoutGroup(false, Styles.DefaultGroupStyle); LayoutGroup innerGroup0 = new LayoutGroup(true, Styles.DefaultGroupStyle); LayoutGroup innerGroup1 = new LayoutGroup(true, Styles.DefaultGroupStyle); LayoutGroup innerGroup2 = new LayoutGroup(true, Styles.DefaultGroupStyle); LayoutEntry item = new LayoutEntry(Styles.DefaultEntryStyle) { ContentWidth = 50, ContentHeight = 50 }; innerGroup0.Add(item.Clone()); innerGroup0.Add(item.Clone()); innerGroup0.Add(item.Clone()); innerGroup1.Add(item.Clone()); innerGroup1.Add(item.Clone()); innerGroup1.Add(item.Clone()); innerGroup2.Add(item.Clone()); innerGroup2.Add(item.Clone()); innerGroup2.Add(item.Clone()); outterGroup.Add(innerGroup0); outterGroup.Add(innerGroup1); outterGroup.Add(innerGroup2); outterGroup.CalcWidth(); outterGroup.CalcHeight(); outterGroup.SetX(0); outterGroup.SetY(0); outterGroup.ShowResult(); }
public void ShowA3LayerGroup() { LayoutGroup group1 = new LayoutGroup(true, Styles.DefaultGroupStyle); LayoutGroup group2 = new LayoutGroup(false, Styles.DefaultGroupStyle); LayoutGroup group3 = new LayoutGroup(false, Styles.DefaultGroupStyle); LayoutGroup group4 = new LayoutGroup(false, Styles.DefaultGroupStyle); LayoutGroup group5 = new LayoutGroup(true, Styles.DefaultGroupStyle); LayoutEntry item1 = new LayoutEntry(Styles.DefaultEntryStyle) { ContentWidth = 50, ContentHeight = 50 }; LayoutEntry item2 = new LayoutEntry(Styles.DefaultEntryStyle) { ContentWidth = 50, ContentHeight = 80 }; LayoutEntry item3 = new LayoutEntry(Styles.DefaultEntryStyle) { ContentWidth = 80, ContentHeight = 50 }; LayoutEntry item4 = new LayoutEntry(Styles.DefaultEntryStyle) { ContentWidth = 400, ContentHeight = 50 }; group1.Add(group2); group1.Add(group3); group1.Add(group4); group2.Add(item1.Clone()); group2.Add(item2.Clone()); group2.Add(item3.Clone()); group3.Add(item1.Clone()); group3.Add(group5); group3.Add(item1.Clone()); group4.Add(item4.Clone()); group5.Add(item1.Clone()); group5.Add(item2.Clone()); group5.Add(item1.Clone()); group1.CalcWidth(); group1.CalcHeight(); group1.SetX(0); group1.SetY(0); group1.ShowResult(); }
public void ShowAVerticalGroupOf3Items() { LayoutGroup group = new LayoutGroup(true, Styles.DefaultGroupStyle); LayoutEntry item = new LayoutEntry(Styles.DefaultEntryStyle) { ContentWidth = 50, ContentHeight = 50 }; group.Add(item.Clone()); group.Add(item.Clone()); group.Add(item.Clone()); group.CalcWidth(); group.CalcHeight(); group.SetX(0); group.SetY(0); group.ShowResult(); }