Unplanned
Last Updated: 14 Apr 2022 06:02 by Allen

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";
}

 

Unplanned
Last Updated: 21 Mar 2022 14:34 by Daniel

Setting Text property of RadButton like this:

this.myButton.Text = "4" + Environment.NewLine + "Totals Files";

And applying HorizontalContentAlignment to "Center" leads to different result on Android and Windows:

Unplanned
Last Updated: 11 Mar 2022 10:52 by Daniel
I want to style button with mouse over like in css.