Esempio n. 1
0
 protected override void _PerformLayoutImpl(dfMarkupBox container, dfMarkupStyle style)
 {
     if (base.ChildNodes.Count != 0)
     {
         style.Align = dfMarkupTextAlign.Left;
         dfMarkupBox box = new dfMarkupBox(this, dfMarkupDisplayType.block, style);
         container.AddChild(box);
         this.calculateBulletWidth(style);
         for (int i = 0; i < base.ChildNodes.Count; i++)
         {
             dfMarkupTag tag = base.ChildNodes[i] as dfMarkupTag;
             if ((tag != null) && (tag.TagName == "li"))
             {
                 tag.PerformLayout(box, style);
             }
         }
         box.FitToContents(false);
     }
 }
Esempio n. 2
0
    protected override void _PerformLayoutImpl(dfMarkupBox container, dfMarkupStyle style)
    {
        if (base.ChildNodes.Count == 0)
        {
            return;
        }
        style.Align = dfMarkupTextAlign.Left;
        dfMarkupBox _dfMarkupBox = new dfMarkupBox(this, dfMarkupDisplayType.block, style);

        container.AddChild(_dfMarkupBox);
        this.calculateBulletWidth(style);
        for (int i = 0; i < base.ChildNodes.Count; i++)
        {
            dfMarkupTag item = base.ChildNodes[i] as dfMarkupTag;
            if (item != null && !(item.TagName != "li"))
            {
                item.PerformLayout(_dfMarkupBox, style);
            }
        }
        _dfMarkupBox.FitToContents(false);
    }