Hello,
create a new C# Silverlight application, reference Telerik.Windows.Controls and replace:
MainPage.xaml with:
and MainPage.xaml.cs with:
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
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