TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Abhilash J A
530
2.4k
600.5k
prevent listview row click checkbox checked wpf
Dec 23 2016 7:01 AM
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?
Reply
Answers (
1
)
Collection data show on Grid when tree view selected Item
need advice - binding listview with poppup window in wpf c#.