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

Set Background image for Toolstrip

1 Answer 83 Views
Toolstrip (obsolete as of Q3 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alcatraz
Top achievements
Rank 1
Alcatraz asked on 28 May 2010, 09:33 AM
Hi,

How to set the background image for the toolstrip?  I couldnt find any such property.

Thanks
Kris

1 Answer, 1 is accepted

Sort by
0
Martin Vasilev
Telerik team
answered on 02 Jun 2010, 05:38 PM
Hi Alcatraz,

Thank you for writing.

Actually, RadToolStrip does not support adding a background image. However, you can manually extend the default behavior by adding an ImagePrimitive to its elements. Please consider the following code snippet:
ImagePrimitive imagePrimitive = new ImagePrimitive();
imagePrimitive.Image = global::Test_RadToolStrip.Properties.Resources.my_background_image;                    
this.radToolStrip1.ToolStripManager.Children[0].Children.Add(imagePrimitive);

You have to keep in mind that there is a limitation on this implementation: RadToolStrip's layout does not allow for stretching the image in the added ImagePrimitive element.

Let me know if you have any additional questions.

Kind regards,
Martin Vasilev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Toolstrip (obsolete as of Q3 2010)
Asked by
Alcatraz
Top achievements
Rank 1
Answers by
Martin Vasilev
Telerik team
Share this question
or