This is a migrated thread and some comments may be shown as answers.

Icon size in RadForm

1 Answer 288 Views
Form
This is a migrated thread and some comments may be shown as answers.
David A.
Top achievements
Rank 1
David A. asked on 16 Mar 2011, 03:09 AM
Greetings,

My application has a 48x48 icon used for a form icon and with a standard form, the 16x16 displays in the title and the 48x48 displays in the taskbar.  When I use RadForm the 48x48 is in the titlebar (like the demo) and is massive. I would like to make this 16x16 in the titlebar and managed to scale using VSB, but it looks all distored.  If I use a 16x16 icon for the form, the titlebar is perfect, but the taskbar icon is all distorted.  Is there a way with RadForm to duplicate what the standard winform does? (displays 48x48 as 16x16 in titlebar and 48x48 in taskbar with no distortion)

Also, when I run the application the title does not appear in the jumplist for Win7 (see attached).

Thanks!

1 Answer, 1 is accepted

Sort by
0
Ivan Todorov
Telerik team
answered on 18 Mar 2011, 12:52 PM
Hello David,

Thank you for your question.

There is a way to change the size of the RadForm's icon. In order to do that, you should change the icon's ImageScaling mode and then set the desired size. Here is how this should be done:
this.FormElement.TitleBar.IconPrimitive.ImageScaling = Telerik.WinControls.Enumerations.ImageScaling.SizeToFit;
this.FormElement.TitleBar.IconPrimitive.ScaleSize = new Size(16, 16);

I hope this will help you. If you have any further questions, feel free to ask.

Regards,
Ivan Todorov
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
Form
Asked by
David A.
Top achievements
Rank 1
Answers by
Ivan Todorov
Telerik team
Share this question
or