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

RadToolbar doesnt show Image on button

1 Answer 128 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ramsha
Top achievements
Rank 1
Ramsha asked on 15 Feb 2016, 10:54 AM

I have an RadToolbar control on my Page. The problem is the Images I have placed on my buttons don't show. My code seems fine. Whats the issue?

<telerik:RadToolBar Grid.Row="1"

    Margin="20,20,5,10">

<Button Width="25"

Click="OnInsertClick">

<Image Source="Images/add.png"/>

</Button>

<Button Width="25">

<Image Source="Images/delete.png"/>

</Button>

</telerik:RadToolBar>

 

I also tried addressing like /Images/add.png but to no avail

1 Answer, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 17 Feb 2016, 09:10 AM
Hello,

What is the location of your images - I see that you are pointing to Images folder in your application -- if this is the correct location then can you you should use the backwards slash to poin to the location like this:
/Images/add.png 
Also check whether you have changed the Build Action of the images? Right-click on an image and then go to Properties. By default the Build Action should be Resource.
Are you applying any custom styles in xaml or in code-behind?
If you still have issues with this I suggest that you open a new support thread and attach a small code sample there so that I can further assist you (attachments in forums are limited to images only cause of licensing/security concerns).

Regards,
Evgenia
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
ToolBar
Asked by
Ramsha
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Share this question
or