Tech Off Post

Single Post Permalink

View Thread: XAML - Listview and SelectedValue
  • User profile image

    Found it:

    Public Property SelectedWord As String
            Return _SelectedWord
        End Get
        Set(value As String)
            RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs("SelectedWord"))
            _SelectedWord = value
        End Set
    End Property

    Raising the PropertyChanged event before changing the value of the property is a stupid idea.