telerik:RadButton - Image source is not working

0 Answers 70 Views
Button
Daniel
Top achievements
Rank 1
Silver
Bronze
Daniel asked on 02 Mar 2022, 01:24 PM

Hi,

     <telerik:RadButton Text="Test"   ImageSource="home.png" WidthRequest="150" />
I put the image in  Resources\images path and set the build action to MauiImage.
Thanks,
       
Petar Marchev
Telerik team
commented on 03 Mar 2022, 09:40 AM

Hi Daniel,

We are not aware of issues in the RadButton related to showing images. I just tested it and all works as expected.

I am attaching a simplified version of our SDK where I have demonstrated that the ImageSource does indeed work. I am also attaching a couple of images with the output I get.

Do try this project on your side and see if you get the same results. I have tested this with Maui Preview 13, Telerik nuget version is 0.5.0, and VS is 17.2.0 Preview 1.0.

I hope this helps. Let us know how it goes.

Daniel
Top achievements
Rank 1
Silver
Bronze
commented on 06 Mar 2022, 11:17 AM

Sorry,

    
      

If you see :First one is Microsoft second one is Telerik.


<Button  Grid.Row="0" Grid.Column ="0" Text="Dashboard" HorizontalOptions="Start" VerticalOptions="Center" Clicked="OnDashboaredClicked" ImageSource="dashboard.png" />
            <telerik:RadButton AutomationId="button" Grid.Row="1" Grid.Column ="0" Text="Routes" HorizontalOptions="Start" VerticalOptions="Center" Clicked="OnRoutesClicked" ImageSource="routes.png"  />

Daniel
Top achievements
Rank 1
Silver
Bronze
commented on 06 Mar 2022, 02:31 PM

Now is OK.

No answers yet. Maybe you can help?

Tags
Button
Asked by
Daniel
Top achievements
Rank 1
Silver
Bronze
Share this question
or