I attached an example of how you can place a jpg image in the content of the RadButton. Let us know if this helped you or if your scenario is more complex.
Best wishes,
Petar Mladenov
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
How do I make the image fill the button, tried HorizontalContentAlignment="Stretch" and VerticalContentAlignment="Stretch" but there is still a grey border.
0
Petar Mladenov
Telerik team
answered on 09 Dec 2021, 01:26 PM
Hi Paul,
Not sure if you are dealing with the current project here or with another one, but generally you should used Padding="0" to remove a gap between the Button's ContentPresenter and its boundaries. However same images might have transparent parts, or the WPF framework might not fill the Image entirely (pixel perfect) over its bounding control. That is why I suggest you to also try BorderThickness="0" on the button and also SnapToDevicePicels=True.
Regards,
Petar Mladenov
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.