RadToolbar doesnt show Image on button

2 posts, 0 answers
  1. Ramsha
    Ramsha avatar
    4 posts
    Member since:
    Feb 2016

    Posted 15 Feb Link to this post

    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

  2. Evgenia
    Admin
    Evgenia avatar
    1406 posts

    Posted 17 Feb Link to this post

    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
  3. DevCraft banner
Back to Top