silverlight中listbox包含控件,怎么使用控件中按钮的事件...
//页面A<ListBox x:Name="downloadList" Visibility="Visible"> <ListBox.ItemTemplate> <DataTemplate> <control:DownloadFileControl/> </DataTemplate> </ListBox.ItemTemplate> </ListBox>//DownloadFileControl中内容 <Button x:Name="DButton" Content="{Binding FileName}" Margin="12,2,29,4" Click="DButton_Click" /> <ProgressBar x:Name="uploadProgress" Value="{Binding BytesSentCount}" Background="Yellow" Width="400" Grid.Column="1" Margin="10,2,0,4" HorizontalAlignment="Left" />