Esempio n. 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);
            }
        }
Esempio n. 2
0
 public Wizard97View(RadWizardElement wizardElement)
 {
     this.Owner                   = wizardElement;
     this.CommandArea.Owner       = wizardElement;
     this.PageHeaderElement.Owner = wizardElement;
     this.PageHeaderElement.IconElement.Alignment = ContentAlignment.MiddleRight;
     this.AddPages();
 }
Esempio n. 3
0
 protected override void CreateChildItems(RadElement parent)
 {
     base.CreateChildItems(parent);
     this.wizardElement = new RadWizardElement();
     this.wizardElement.OwnerControl = this;
     this.WireEvents();
     parent.Children.Add((RadElement)this.wizardElement);
 }
Esempio n. 4
0
        /// <summary>
        /// Creates a WizardAeroView instance.
        /// </summary>
        /// <param name="wizardElement">Owner of the element.</param>
        public WizardAeroView(RadWizardElement wizardElement)
        {
            base.Owner                   = wizardElement;
            base.CommandArea.Owner       = wizardElement;
            this.topElement.Owner        = wizardElement;
            base.PageHeaderElement.Owner = wizardElement;
            base.PageHeaderElement.IconElement.Alignment = ContentAlignment.MiddleLeft;

            base.AddPages();
        }
Esempio n. 5
0
 /// <summary>
 /// Creates a WizardCommandArea element.
 /// </summary>
 /// <param name="wizardElement">Owner of the element.</param>
 public WizardCommandArea(RadWizardElement wizardElement)
 {
     base.Owner = wizardElement;
 }
Esempio n. 6
0
 public WizardPageCollection(RadWizardElement owner)
 {
     this.owner = owner;
 }
Esempio n. 7
0
 /// <summary>
 /// Creates a WizardAeroTopElement.
 /// </summary>
 /// <param name="wizardElement">Owner of the element.</param>
 public WizardAeroTopElement(RadWizardElement wizardElement)
 {
     base.Owner = wizardElement;
 }
Esempio n. 8
0
 public Wizard97CommandArea(RadWizardElement wizardElement)
 {
     this.Owner = wizardElement;
 }
Esempio n. 9
0
 public WizardAeroTopElement(RadWizardElement wizardElement)
 {
     this.Owner = wizardElement;
 }