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:
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]}"/>
<telerik:RadNumericUpDown Name="RadNumericUpDown2" Value="{Binding Path=Score[1]}"/>
etc.
Can anyone point me in the right direction?