Congratulations - C# Corner Q4, 2022 MVPs Announced
Why Join
Become a member
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forum guidelines
Ranjith Kumar
2.1k
43
284
Grid Background is not changing
Nov 14 2019 1:58 AM
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);
}
}
Reply
Answers (
4
)
how to post image from our application to linkedin post ?
Send Message Using Whatsap API With C# have You any Idea?