Ejemplo n.º 1
0
        public void AddCopyRights(string text)
        {
            var simpleTextBox = new SimpleTextBox(text)
            {
                TextAlignment = System.Windows.TextAlignment.Center,
                Width         = base.Width,
                Tag           = "footer",
                Background    = System.Windows.Media.Brushes.OliveDrab
            };

            items.Add(simpleTextBox);
            AddVisual(simpleTextBox);
        }
        public void AddTitle(string text)
        {
            var simpleTextBlock = new SimpleTextBox(text)
            {
                FontWeight    = FontWeights.Bold,
                FontSize      = 40,
                TextAlignment = System.Windows.TextAlignment.Center,
                Width         = base.Width
            };

            simpleTextBlock.SetWidth(Width);
            if (Height < simpleTextBlock.Height)
            {
                Height = simpleTextBlock.Height;
            }
            items.Add(simpleTextBlock);
            AddVisual(simpleTextBlock);
        }