Unplanned
Last Updated: 31 Jan 2023 17:09 by Hanoch

BackgroundColor is not applied property when DynamicResource is used and button enabling state is changed

<Style TargetType="telerik:RadButton" x:Key="MyTelerikButtonStyle">
            <Setter Property="TextColor" Value="{DynamicResource MyPrimaryColor}" />
            <Setter Property="BackgroundColor" Value="{DynamicResource MySecondaryColor}" />
            <Style.Triggers>
                <Trigger TargetType="telerik:RadButton" Property="IsEnabled" Value="false" >
                    <Setter Property="BackgroundColor" Value="Gray" />
                </Trigger>
            </Style.Triggers>
</Style>

WORKAROUND:

Use StaticResource:

 <Setter Property="TextColor" Value="White" />
 <Setter Property="BackgroundColor" Value="Green" />

Unplanned
Last Updated: 23 Dec 2022 09:08 by John
Created by: John
Comments: 0
Category: Button
Type: Bug Report
1

Background property is not applied on Android and WinUI. On Mac and iOS works as expected.

 <telerik:RadButton x:Name="button" Text="hello telerik button">
                <telerik:RadButton.Background>
                    <LinearGradientBrush EndPoint="0,1">
                        <GradientStop Offset="0.0" Color="Violet" />
                        <GradientStop Offset="1.0" Color="DarkRed" />
                    </LinearGradientBrush>
                </telerik:RadButton.Background>
 </telerik:RadButton>


Completed
Last Updated: 10 Nov 2022 15:38 by ADMIN
Release 4.0.0

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: 18 Oct 2022 09:32 by Hanoch
Created by: Hanoch
Comments: 1
Category: Button
Type: Feature Request
1
I want hover on Telerik button like in CSS.
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.