Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
90
Center items vertically on path
posted

I am adding StackPanel items to XamCarouselPanel.ChildElements collection.  I am creating these stack panels dynamically and they are of varying height.  Everything is working great, but I can't find a way to center the items.  I'm using a horizontal path and as the items cycle through, they seem to be vertically positioned at the bottom instead of the center.

I have based my layout on your Custom CarouselPanelNavigator Style example (ItemNavigatorStyling_Samp.xaml).

If you change the heights of some the images to 150 and some 50, you will notice when main focused item is shown, the bottom of the images always are at the same level vertically.  I would like to have them centered instead.