Esempio n. 1
0
        private void BuildLayout()
        {
            if (m_Words == null)
            {
                return;
            }

            using (CanvasDrawingSession ds = _DrawingCanvas.CreateDrawingSession())
            {
                IGraphicEngine graphicEngine = new GdiGraphicEngine(ds, FontStyle, FontFamily, m_Palette, MinFontSize, MaxFontSize, m_MinWordWeight, m_MaxWordWeight);

                m_Layout = LayoutFactory.CrateLayout(m_LayoutType, new Size(this.ActualWidth, this.ActualHeight));
                m_Layout.Arrange(m_Words, graphicEngine);
            }
        }