DataTemplate and ScrollViewer

1 posts, 0 answers
  1. Lauri
    Lauri avatar
    1 posts
    Member since:
    Aug 2012

    Posted 13 Aug 2012 Link to this post

    Hi,
    It would seem that standard Silverlight (4) ScrollViewer does not work when put inside DataTemplate. I see the ScrollViewer and it clearly displays that there is scrollable content, but when I try to scroll nothing happens. In this specific case, the DataTemplate is that of CoverFlow ItemTemplate.
    I have also tried opposite approach, wrapping CoverFlow (and possible outer elements) inside ScrollViewer. This does not work either because ScrollViewer cannot deduce dimension of items inside DataTemplate. If I put CoverFlow inside fixed-sized container scrolling does work, but then I have empty space and content is in the middle despite I use VerticalContentAlignment="Top" wherever it is applicable.
    Any hints appreciated.
Back to Top