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
160
CarouselListBox ViewSettings
posted

Hello,

I am trying to achieve the behaviour in which each CarouselListBoxItem occupies 95% of the visible area. We have the ViewSettings in which we have set ItemsPerPage as 1. In order to achieve the 95% occupancy we have put a behaviour in place which gets executed on the Carousel SizeChanged event which eventually sets the ItemSize property of the ViewSettings to 95% of actual size.

Carousel.ViewSettings.ItemSize = new Size(Carousel.ActualWidth * Percentage, Carousel.ActualHeight * Percentage);

When running the attached sample, we are not able to achieve this behaviour. Could you please let us know why is that so and any alternative of achieving this.

(See attachment for sample)

Thanks.

CarouselListBox.zip
Parents Reply Children
No Data