Hi all,
how can i clear the canvas backgroung color dynamically..
i code is given below.in one click canvas gets a color(working fine).. but not able to clear it.
private void ButtonClear_Click(object sender, RoutedEventArgs e)
{
rb1.IsEnabled = true;
rb2.IsEnabled = true;
can.Background.ClearValue(Canvas.BackgroundProperty);
}
private void ButtonSet_Click(object sender, RoutedEventArgs e)
{
SolidColorBrush _buttonFillStyleNotApplied = new SolidColorBrush(Color.FromArgb(255, 34, 23, 67));
rb1.IsEnabled = false;
rb2.IsEnabled = false;
can.Background = _buttonFillStyleNotApplied;
}
thanks
Balu