public Column() { m_MinWidth = MinWidth + 10; LeftGap = new ColumnSection(); Body = new ColumnSection(); RightGap = new ColumnSection(); Body.Allocate(MinWidth); }
protected override void LayoutCore(IGraphicContext graphicContext) { base.LayoutCore(graphicContext); ColumnSection columnSection = m_Signal.End.Orientation == Orientation.Left ? m_EndColumn.LeftGap : m_EndColumn.RightGap; float width = m_TextSize.Width + Style.Signal.TextPadding * 2; if (m_EndColumnNeighbor == null) { columnSection.Allocate(width); } else { columnSection.Allocate(width / 2); m_EndColumnNeighbor.Allocate(width / 2); } m_Row.Body.Allocate(m_TextSize.Height + Style.Signal.TextPadding * 2); }