IOT Virtual Conference - Register now to book your ticket and get updates
x
CONGRATULATIONS! C# Corner Q1, 2021 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
Forumguidelines
Burak Seyhan
1.7k
321
25.2k
Wpf CheckBox Problem
Sep 16 2015 4:46 AM
Hi ,
I developed wpf application. I have to display user status with images.
private void cbVoice_Click(object sender, RoutedEventArgs e)
{
LoginServerStatus status = new LoginServerStatus();
BitmapImage logo = new BitmapImage();
logo.BeginInit();
logo.UriSource = new Uri("Resources/Content/green.png", UriKind.Relative);
logo.EndInit();
imgVoice.Source = logo;
}
private void cbVoice_Unchecked(object sender, RoutedEventArgs e)
{
BitmapImage logo = new BitmapImage();
logo.BeginInit();
logo.UriSource = new Uri("Resources/Content/red.png", UriKind.Relative);
logo.EndInit();
imgVoice.Source = logo;
}
When I check the checkbox, check event works . However unchecked method works but Image doesn't update. Why and How can i fixed the problem?_
Thanks
Reply
Answers (
7
)
Dropdown issues in WPF Webbrowser control when viewing IE11
Blend:Calender