TitleIcon selects wrong size icon.

Feb 8, 2013 at 1:54 PM
If icon that is specified for TitleIcon property has more sizes in it for example 64x64, 32x32, 24x24, 16x16, then the biggest size icon will be used and just resized. This results in crappy looking icon. Worked around that by creating a new icon object forcing to select 16x16 size icon from icon file.
    /// <summary>
    /// Gets or sets the optionally displayed icon next to the wizard title.
    /// </summary>
    /// <value>The title icon.</value>
    [Category("Wizard"), Localizable(true), Description("Icon next to the wizard title")]
    public Icon TitleIcon
    {
        get
        {
            return this.titleImageIcon;
        }

        set
        {
            this.titleImageIcon = value;
            this.titleImageList.Images.Clear();
            if (this.titleImageIcon != null)
            {
                this.titleImageList.Images.Add(new Icon(value, 16, 16));
                this.titleImage.ImageIndex = 0;
            }

            this.titleImageIconSet = true;
            this.Invalidate();
        }
    }
Coordinator
Feb 8, 2013 at 2:58 PM
Thanks for catching this bug. I have implemented it in version 1.2.4.