问题
I am having a Horizontal listbox having usercontrol(150 width and 150 height as dimensions) as items.
I am displaying 3 items in listbox at a time. My question is how can I detect the middle item while scrolling so that as i scroll left or right i can display the name and other details of middle listbox item in texblock placed above it.
Please refer the image uploaded.
Thanks in Advance.
回答1:
Try this http://silverlightcarousel.codeplex.com/
http://wpfcarousel.codeplex.com/
回答2:
It seems you're looking for a CoverFlow control. I know ComponentOne have one and there are probably others.
If this is for a commercial app it'll definitely be easier to buy one than build your own.
If you're all set on building your own then you'll probably want to build from scratch as the ListBox doesn't allow for the customization you'll require.
来源:https://stackoverflow.com/questions/11134718/highlighting-the-details-of-middle-usercontrol-item-of-a-wp7-listbox-as-shown-in