Spin control values are not updating inside propertyTools

Aug 26, 2012 at 2:02 PM

I am trying the propertyTools and i set one of the properties of my object to be Spinnable:

 <Spinnable(1, 10, 0, 1000)>

    Public Property Number() As Integer
            Return m_number
        End Get
        Set(ByVal value As Integer)
            m_number = value
        End Set
    End Property
this property appears fine but when i update the vaule with up/down arrows or with mouse scroll
the value doesn't update
if i switch to a different object and return to this one i see the proper new value
do you know why this is happening?
Thanks Ronen


Aug 26, 2012 at 7:09 PM

I think you need to raise the INotifyPropertyChanged.PropertyChanged event in your setter!

Aug 27, 2012 at 6:42 AM

thanks , it solved the problem