Completed
Last Updated: 10 Nov 2022 15:38 by ADMIN
Release 4.0.0
Allen
Created on: 14 Apr 2022 06:02
Category: Button
Type: Bug Report
0
Button: [Windows] Background image can not be changed runtime

When I try to change the background image on a button click, the image is not changed

<telerik:RadButton Grid.Row="6" BackgroundImage="image.png" VerticalOptions="Center" HorizontalOptions="Center" WidthRequest="100" HeightRequest="100" Clicked="RadButton_Clicked"/>

 

private void RadButton_Clicked(object sender, EventArgs e)
{
	(sender as Telerik.Maui.Controls.RadButton).BackgroundImage = "image2.png";
}

 

0 comments