Exemplo n.º 1
0
        public void AddVis()
        {
            DrawingVisual vis = new DrawingVisual();

            using (DrawingContext dc = vis.RenderOpen())
            {
                DrawingHelpers.DrawString(dc, "test2", TypeFaces.TextFont, Brushes.Black, 35f, 45f, 20f);
            }
            //this.AddVisual(vis);
        }
Exemplo n.º 2
0
        private void ConstructVisualPreview()
        {
            DrawingVisual vis = new DrawingVisual();

            using (DrawingContext dc = vis.RenderOpen())
            {
                DrawingHelpers.DrawString(dc, "test", TypeFaces.TextFont, Brushes.Black, 20f, 15f, 20f);
            }
            this.AddVisual(vis);
        }