This is a migrated thread and some comments may be shown as answers.

Disabled statetheme is not consistent

1 Answer 28 Views
Buttons
This is a migrated thread and some comments may be shown as answers.
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Patrick asked on 01 Mar 2013, 04:15 PM
Hello,

create a new C# Silverlight application, reference Telerik.Windows.Controls and replace:

MainPage.xaml with:
<UserControl
  x:Class="SilverlightApplication1.MainPage"
 
  <StackPanel Margin="5"
              Orientation="Horizontal"
              VerticalAlignment="Top">
    <tk:RadButton Content="Click to change enable state"
                  Click="RadButton_Click_1" />
    <tk:RadButton Name="Button"
                  Content="Button to check"
                  IsEnabled="False"
                  Margin="10 0 0 0" />
  </StackPanel>
 
</UserControl>

and MainPage.xaml.cs with:
using System.Windows;
using System.Windows.Controls;
 
namespace SilverlightApplication1
{
  public partial class MainPage : UserControl
  {
    public MainPage()
    {
      InitializeComponent();
    }
 
    private void RadButton_Click_1(object sender, RoutedEventArgs e)
    {
      Button.IsEnabled = !Button.IsEnabled;
    }
  }
}

Now run the application.
You can see two buttons at the top of the browser, with the right one being disabled.
Look at how the disabled button look, with 3D shades.
Press the left button to enable the second one, then once again to disabled it again.
The disabled button has now a flat look!
I've tried with the default theme and the Windows7 theme with the same result.

Patrick

1 Answer, 1 is accepted

Sort by
0
Pavel R. Pavlov
Telerik team
answered on 06 Mar 2013, 03:42 PM
Hello Patrick,

Thank you for bringing this issue to our attention. You are right that this is not the expected behavior of the RadButton control. I have logged an item in our PITS and you can follow it and vote for it here. Also, as a  gratitude for your feedback I updated your Telerik account.

Kind regards,
Pavel R. Pavlov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Buttons
Asked by
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Pavel R. Pavlov
Telerik team
Share this question
or