Spin control values are not updating inside propertyTools

Aug 26, 2012 at 1: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)>

    <Width(80)>
    Public Property Number() As Integer
        Get
            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

 

Coordinator
Aug 26, 2012 at 6:09 PM

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

Aug 27, 2012 at 5:42 AM

thanks , it solved the problem