© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
1 reply
R1nge

Get index of a selected item in a list view

So, how to get an index of a clicked element in a scroll viewer?
Or a clicked element in a scroll view?
I need it, to be able to open a dialog menu with file selection and change the clicked/selected image

Code:
https://hastebin.skyra.pw/ulupiyirez.ts

(Pic1)
This is how it looks in the app

Upd: WPF
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Get first item in list
C#CC# / help
2y ago
❔ Viewing List from ViewBag
C#CC# / help
4y ago
❔ Get list of indices from a List
C#CC# / help
3y ago
❔ Filing empty list with equal items left and right of selected item from another list
C#CC# / help
3y ago