Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8797459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:51:42+00:00 2026-06-13T23:51:42+00:00

I am using VB.NET and WPF within Visual Studio 2010 Express. Currently, I have:

  • 0

I am using VB.NET and WPF within Visual Studio 2010 Express.

Currently, I have:

  • A DataGrid by the name of downloadListDG. This has a column which is a template containing an image.
  • An ObservableCollection of a custom DownloadListItem class.
  • This DownloadListItem has a public property which is another custom class.
  • This class has a private dim which is a StateType (a custom enum), and a public readonly property which returns a string depending on what the StateType is (actually an image URI if you’re curious).
  • The DownloadListItem also has a public property which just returns the StateType (this is just for binding purposes)

My problem is that whenever the StateType changes, the image column in the DataGrid does not change. I have been trying to use the IPropertyChangedNofity, but nothing changes, so either I’m using it incorrectly or I need to use another method.

Implements INotifyPropertyChanged

Public Event PropertyChanged As PropertyChangedEventHandler Implements INotifyPropertyChanged.PropertyChanged

AddHandler ControllerRef.StateChanged, AddressOf StateChangeHandler

Private Sub StateChangeHandler(NewState As State)
    MsgBox(NewState)
    RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs("CurrentState"))
End Sub

Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T23:51:43+00:00Added an answer on June 13, 2026 at 11:51 pm

    Make sure the PropertyChanged event is notifying the UI of the property name you are bound to, not the property that triggers the change. Example:

    Imports System.ComponentModel
    

    Public Class DownloadListItem : Implements INotifyPropertyChanged

    Friend Enum StateEnum
        State1 = 0
        State2 = 1
    End Enum
    
    Private _CurrentState As StateEnum
    
    Private Sub ChangeEnumValue(NewValue As StateEnum)
        _CurrentState = NewValue
        OnPropertyChanged("ImageURI")
    End Sub
    
    Public ReadOnly Property ImageURI As String
        Get
            ' TODO: Implement conditional logic to return proper value based on CurrentState Enum
        End Get
    End Property
    
    Public Event PropertyChanged(sender As Object, e As PropertyChangedEventArgs) Implements INotifyPropertyChanged.PropertyChanged
    
    Protected Sub OnPropertyChanged(PropertyName As String)
        RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs(PropertyName))
    End Sub
    

    End Class

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Environment: Visual Studio Ultimate 2010 Windows XP WPF Desktop Application using .NET 4.0 We
I have a persistent problem with textboxes in WPF, using .NET 3.5. With a
I'm using WPF with .NET 3.0. I have a relatively simple DataTemplate defined as
I am studying a code base developed using .NET WPF. I am using Visual
I have a .Net client WPF application using System.DirectoryServices and LDAP for authentication. On
So I was doing this in WinForms .NET 3.5... I am now using WPF
I started using Protobuf-Net in C# and WPF projects. I have a class that
I am using the .NET 4 WPF DataGrid and notice poor vertical scrolling performance
I have created an online poker system using WCF net.tcp and WPF for the
I'm using .net WPF geometry classes to graph waveforms. I've been using the matrix

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.