in Education by
I am developing a Windows 8 metro application that uses semantic zoom in the following way: The zoomed in view contains a ListView with complex controls that allow for user interaction (by using TextBox and Button controls), therefore this ListView has IsItemClickEnabled="False". The user must trigger the zoomed out view manually. The zoomed out view contains another ListView which displays a simple list that displays some status information for the controls in the zoomed in view. The ItemsSource property of this ListView is populated dinamically with plain objects that are created in the moment that the view is made active. This ListView has IsItemClickEnabled="True". What do I want: When the user taps or clicks on an item in the zoomed out view, the zoomed in view should activate and the control matching the clicked item should be made visible (the zoomed in ListView allows scrolling, so the control could be hidden). I know how to do this as long as the SelectionChanged event is triggered when a item is clicked. What happens instead: When the user taps or clicks on an item in the zoomed out view, the zoomed in view activates automatically and no SelectionChanged event is triggered. However, it works fine when using right click or Ctrl+click instead. So, my question is: Is there any way to make a ListView trigger the SelectionChanged event on item tap or left click, in addition to right click and Ctrl+click? If not, how can I detect the tap or left click? Thank you very much! JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
I found out the solution. I must control the Tapped event of the control that is inside the defined DataTemplate for the list, NOT the event of the ListView itself: And in the Item_Tapped method, I just cast sender to FrameworkElement and look at its DataContext.

Related questions

0 votes
    I want to right align alternate list elements and keep the other left making it a ZIG-ZAG list Something ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jul 20, 2022 in Education by JackTerrance
0 votes
    Justified Alignment select text towards the Left Margins. true or false Select the correct answer from above options...
asked Dec 20, 2021 in Education by JackTerrance
0 votes
    Basically what the title says... I need to have an image that when clicked, I call script.php for ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 7, 2022 in Education by JackTerrance
0 votes
    Basically what the title says... I need to have an image that when clicked, I call script.php for ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 6, 2022 in Education by JackTerrance
0 votes
    Basically what the title says... I need to have an image that when clicked, I call script.php for ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 5, 2022 in Education by JackTerrance
0 votes
    Basically what the title says... I need to have an image that when clicked, I call script.php for ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 5, 2022 in Education by JackTerrance
0 votes
    Basically what the title says... I need to have an image that when clicked, I call script.php for ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 5, 2022 in Education by JackTerrance
0 votes
    Basically what the title says... I need to have an image that when clicked, I call script.php for ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 5, 2022 in Education by JackTerrance
0 votes
    Basically what the title says... I need to have an image that when clicked, I call script.php for ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 5, 2022 in Education by JackTerrance
0 votes
    Please refer to my test case https://jsfiddle.net/1c3Lmace/13/ This is my code $(document).ready( ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jul 20, 2022 in Education by JackTerrance
0 votes
    I've seen similar questions asked about WPF, but none of the proposed solutions seem to work under Windows ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 25, 2022 in Education by JackTerrance
0 votes
    I have a list: foo= ['q'' , 'w' , 'e' , 'r' , 't' , 'y'] I want to retrieve an item randomly from this list, How can I do it in python? Select the correct answer from above options...
asked Jan 21, 2022 in Education by JackTerrance
0 votes
    click on the_ button to select different styles for the workspace area? Fill in the blanks Select the correct answer from above options...
asked Nov 29, 2021 in Education by JackTerrance
0 votes
    Consider the tree T in which left subtree contains half of the maximum number of nodes possible in the avl tree of ... of nodes in T? Select the correct answer from above options...
asked Dec 28, 2021 in Education by JackTerrance
0 votes
    when two operators like+,- share the same ranking the formula is calculate from right to left. is it true or false? Select the correct answer from above options...
asked Dec 25, 2021 in Education by JackTerrance
...