में ListView के चेक किए गए पंक्ति मान कैसे प्राप्त करें मेरे पास CheckBox
के साथ WPF अनुप्रयोग में ListView
है।WPF
मैं एक WPF सूची में सभी की जांच की गई पंक्तियों के मूल्यों को बचाने के लिए चाहते हैं ...
मैं यह कैसे प्राप्त कर सकते हैं?
मेरे ListView
<ListView x:Name="listViewChapter" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" BorderThickness="0" SelectionMode="Single" Height="100" Margin="22,234,17,28" Grid.Row="1">
<ListView.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center" >
<Label Name="lblChapterID" VerticalAlignment="Center" Margin="0" Content="{Binding ChapterID}" Visibility="Hidden" />
<CheckBox Name="chkChapterTitle" VerticalAlignment="Center" Margin="0,0,0,0" Content="{Binding ChapterTittle}" Checked="chkChapterTitle_Checked" />
</StackPanel>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
मैं जोड़ लिया है IsChecked = "{बाइंडिंग RelativeSource = {RelativeSource AncestorType = ListViewItem}, पथ = IsSelected}" .. ListView में अब कैसे मैं पंक्तियों मूल्यों .. –
से जांच करा सकता चेकबॉक्स में यह जोड़ने के बाद केवल सिंगल चेकबॉक्स चेक किया गया है, मैं बहुभाषी चेकबॉक्स चाहता हूं .... –