0
我在Silverlight 4.列表框在Silverlight
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<TextBlock x:Name="xxxxx" Text="{Binding xxxxx}" Width="100"/>
<TextBox x:Name="Quantity" Text="{Binding Quantity}" Width="30" Height="20" TextChanged="Quantity_TextChanged"></TextBox>
<TextBlock x:Name="UnitAmount" Text="{Binding UnitAmount}" Width="96"></TextBlock>
<TextBox x:Name="TotalAmount" Text="{Binding TotalAmount}" IsEnabled="False" Width="40"></TextBox>
<TextBlock x:Name="xxxxx" Text="{Binding xxxxx}" Width="96"></TextBlock>
</StackPanel>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
列表框在該列表框我有5列和在該第二和第四是文本框,因爲它是在上述代碼所示的這些兩個文本框用於顯示項目的數量,第三列用於顯示該項目的單價,第四列顯示總金額,這是當數量與單位數量相乘時得到的結果。在此列表框中放入顯示數量和總金額的文本框是因爲我需要在綁定listbox.my的需求之後更改數量在綁定列表框中的細節後,我需要編輯數量,我已經做了,但現在我需要在數量的文本更改中更改總金額字段。
我希望我的問題很清楚。
感謝大家提前。
任何人都可以請提供一個有用的鏈接,我上面的問題??? – user421678