Dear People,
I have a sample programme.
<UserControl x:Class="ButtonSample.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="400">
<Grid x:Name="LayoutRoot" Background="White">
<StackPanel Orientation="Vertical">
<Button Name="btnTest" Width="100" Height="80" Content="Test" Margin="20" telerik:Theming.Theme="Office_Blue"/>
<Button Name="btnClickMe" Width="100" Height="80" Content="Click me" Margin="20" Click="btnClickMe_Click" telerik:Theming.Theme="Office_Blue"/>
</StackPanel>
</Grid>
</UserControl>
public partial class MainPage : UserControl
{
public MainPage()
{
InitializeComponent();
}
private void btnClickMe_Click(object sender, RoutedEventArgs e)
{
this.btnTest.IsEnabled = !btnTest.IsEnabled;
}
}
And i noticed that when the button IsEnabled state is changed from false to true. The button is clickable, but the text on button
is not so clear. How can i solve this problem?
I have a sample programme.
<UserControl x:Class="ButtonSample.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="400">
<Grid x:Name="LayoutRoot" Background="White">
<StackPanel Orientation="Vertical">
<Button Name="btnTest" Width="100" Height="80" Content="Test" Margin="20" telerik:Theming.Theme="Office_Blue"/>
<Button Name="btnClickMe" Width="100" Height="80" Content="Click me" Margin="20" Click="btnClickMe_Click" telerik:Theming.Theme="Office_Blue"/>
</StackPanel>
</Grid>
</UserControl>
public partial class MainPage : UserControl
{
public MainPage()
{
InitializeComponent();
}
private void btnClickMe_Click(object sender, RoutedEventArgs e)
{
this.btnTest.IsEnabled = !btnTest.IsEnabled;
}
}
And i noticed that when the button IsEnabled state is changed from false to true. The button is clickable, but the text on button
is not so clear. How can i solve this problem?