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
Shanu Mishra
NA
1
763
How to fire event on Bind Control with listview
Jul 1 2016 9:28 AM
Namskaar
I am developing app for Windows Mobile 8.1
I am binding textblock controls to a listview. I am able to view but unable to perform click event on items.
<ListView x:Name="QPCardList" ItemsSource="{Binding}" IsItemClickEnabled ="True" HorizontalAlignment="Stretch">
<ListView.ItemTemplate>
<DataTemplate>
<StackPanel>
<Image Source="{Binding src}" Margin="10,10,0,0" />
<TextBlock Text="{Binding accounttype}" HorizontalAlignment="Right" Margin="250,10,0,0" FontSize="22" />
<TextBlock Text="{Binding customername}" HorizontalAlignment="Left" Margin="10,0,0,0" FontSize="22" />
<TextBlock Text="{Binding cardend}" HorizontalAlignment="Right" Margin="250,0,0,0" FontSize="22" />
<TextBlock Text="{Binding expdate}" HorizontalAlignment="Left" Margin="10,0,0,0" FontSize="22" />
</StackPanel>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
QPCardList.DataContext = new CollectionViewSource { Source = Mylist };
QPCardList.ItemClick += bt_Click;
Reply
Answers (
0
)
UWP PayLoad File Doesn't exist
Parse the following XML and generate HTML code in preferred