I have a observablecollection with 20 items(images) and button(“Next”).How I can get functions like observablecollection.next() and observablecollection.previous() ?
I have a observablecollection with 20 items(images) and button(Next).How I can get functions like
Share
An observable collection has no concept of ‘Current’ or even of ‘Selected’ item. They are all equal.
You could keep a simple
intindex and Increment/Decrement it.Or use the SelectedItem property of a bound ListBox or similar.