Hello,
I have listview with contain Checkbox. I want to privent checkbox checked when click on listview row only allow on checkbox click.
- <GridViewColumn>
- <GridViewColumn.CellTemplate>
- <DataTemplate>
- <CheckBox Tag="{Binding UserId}" IsChecked="{Binding RelativeSource={RelativeSource AncestorType=ListViewItem},Path=IsSelected}" />
- </DataTemplate>
- </GridViewColumn.CellTemplate>
- </GridViewColumn >
- public partial class UC_FileMgmt : UserControl
- {
- public UC_FileMgmt()
- {
- InitializeComponent();
- DMSBusinessLayer service = new DMSBusinessLayer();
- listView1.ItemsSource = service.GetUserDocuments();
- }
- }
How can I do this?