尝试了很多办法,就是解决不了,下面上图
如图,我想获取网址列表中被选中的复选框的文本内容,下面给出ListBox代码
<ListBox Name="Posturl_Table" Grid.Column="1" HorizontalAlignment="Left" Height="200" Margin="10,97,0,0" VerticalAlignment="Top" Width="279" ItemsSource="{Binding PosturlArray}">
<ListBox.ItemTemplate>
<DataTemplate>
<CheckBox IsChecked="{Binding IsSelected}" Content="{Binding Path=url}" />
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
求大牛教怎么获取,网上说通过绑定,找了半天找不到一个有效的...都快被WPF恶心死了