Hi,
I'm trying to bind (two way) ten numericupdown elements to an array of ten Doubles, i've tried every method but just cannot get it to work - here is my latest attempt:
VB:
Get
Return m_Scores.Item(index)
End Get
Set(ByVal Value As Double) m_Scores.Item(index) = Value
RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs("Score(" & index & ")"))
End Set
End Property
XAML:
Can anyone point me in the right direction?
I'm trying to bind (two way) ten numericupdown elements to an array of ten Doubles, i've tried every method but just cannot get it to work - here is my latest attempt:
VB:
Private m_Scores As New ObservableCollection(Of Double)Public Property Score(ByVal index As Integer) As Double
Get
Return m_Scores.Item(index)
End Get
Set(ByVal Value As Double) m_Scores.Item(index) = Value
RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs("Score(" & index & ")"))
End Set
End Property
XAML:
<telerik:RadNumericUpDown Name="RadNumericUpDown1" Value="{Binding Path=Score[0]}"/>etc.
<telerik:RadNumericUpDown Name="RadNumericUpDown2" Value="{Binding Path=Score[1]}"/>
Can anyone point me in the right direction?