I have to set the grid background based on the result. that is working fine.
But when I am clicking again the button, it is not set to white color.
- private void Conversion_Click(object sender, RoutedEventArgs e)
- {
- grid.Background = new SolidColorBrush(Colors.White);
- bool result = DoConversion();
- if (result)
- {
- grid.Background = new SolidColorBrush(Colors.Green);
- }
- else
- {
- grid.Background = new SolidColorBrush(Colors.Red);
- }
- }
Ranjith KumarPosted Nov 15, 2019, 1:06 AM
Mageshwaran RPosted Nov 14, 2019, 3:45 AM
Ranjith KumarPosted Nov 14, 2019, 3:19 AM
Piyush PansuriyaPosted Nov 14, 2019, 3:10 AM