Пример #1
0
        protected override void PaintOverride(Paint.IGraphics screenRadGraphics, Rectangle clipRectangle, float angle, SizeF scale, bool useRelativeTransformation)
        {
            base.PaintOverride(screenRadGraphics, clipRectangle, angle, scale, useRelativeTransformation);
            if (base.Visibility != ElementVisibility.Visible || this.Parent == null)
            {
                return;
            }
            WizardPageHeaderElement pageHeader = this.Parent as WizardPageHeaderElement;

            if (pageHeader == null)
            {
                return;
            }

            RadWizardElement owner = pageHeader.Owner;

            if (DWMAPI.IsCompositionEnabled && !this.IsDesignMode && owner != null && owner.OwnerControl != null && owner.Mode == WizardMode.Aero && owner.EnableAeroStyle)
            {
                TelerikPaintHelper.DrawGlowingText(
                    (Graphics)screenRadGraphics.UnderlayGraphics,
                    this.Text,
                    this.Font,
                    this.ControlBoundingRectangle,
                    this.ForeColor, TextFormatFlags.EndEllipsis | TextFormatFlags.SingleLine | TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter);
            }
        }
Пример #2
0
 protected override void CreateChildElements()
 {
     base.CreateChildElements();
     this.pageHeaderElement = new WizardPageHeaderElement();
     this.Children.Add((RadElement)this.pageHeaderElement);
     this.welcomeImageElement                = new LightVisualElement();
     this.welcomeImageElement.Class          = "WelcomeImage";
     this.welcomeImageElement.ImageAlignment = ContentAlignment.TopCenter;
     this.welcomeImageElement.ImageLayout    = ImageLayout.None;
     this.Children.Add((RadElement)this.welcomeImageElement);
     this.completionImageElement                = new LightVisualElement();
     this.completionImageElement.Class          = "CompletionImage";
     this.completionImageElement.ImageAlignment = ContentAlignment.TopCenter;
     this.completionImageElement.ImageLayout    = ImageLayout.None;
     this.Children.Add((RadElement)this.completionImageElement);
 }