Beispiel #1
0
        protected void CreateElements(AbstractCollection container)
        {
            graphics = new BorderedGraphics[size];

            IEnumerator<VapeTeam.Psimulex.Core.Types.BaseType> it = container.AsEnumerable().GetEnumerator();
            int i = 0;
            while (it.MoveNext())
            {
                BorderedGraphics elem = graphics[i] = new BorderedGraphics(
                    GraphicsElementFactory.Produce(it.Current));

                elem.ParentGraphics = this;

                elem.HorizontalAlignment = HorizontalAlignment.Stretch;
                elem.VerticalAlignment = VerticalAlignment.Stretch;
                elem.InitializeDraw();
                panel.Children.Add(elem);
                ++i;
            }
        }