- 0
[C#/Win8] Weird results when calling IndexOf
-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
- 1 reply
- 2,062 views
-
PC extremely slow - has sometimes a blue screen error when starting/crashes often/very slow
By ogannon,
- 10 replies
- 11,914 views
-
win8 Win+X Menu Editor for Windows
By Sergey "hb860",
- 9 replies
- 5,880 views
-
Windows 10 Continuum was codenamed "Modern Glass" during its development
By Ian W,
- microsoft
- windows 10
- (and 11 more)
- 10 replies
- 1,207 views
-
- 12 replies
- 3,526 views
-
Question
sathenzar
I have never had this issue with calling IndexOf. I have a simple control in a stackpanel and I add it to a list to be sorted later:
When I click a button on that control I want it to get the current index in the list for that control.
Seems simple right? Well it keeps returning -1 even though I can see the control(s) in the list in the debugger...I've never had this issue before. Did something change in win8 with the way you can retrieve index locations?
Link to comment
Share on other sites
6 answers to this question
Recommended Posts