This project is read-only.

how to insert flip controls in scollable itemscontrol

Nov 18, 2011 at 2:30 PM
Edited Nov 18, 2011 at 2:31 PM

Hi! My question is really simple: in my WPF window I have an itemscontrol that is bound to different images in code behind. Itemscontrol's datatemplate is rapresented by a flipcontrol in which frontside and backside are two images. I want that the itemscontrol can be scrollable, so I have inserted it into a scrollviewer. The problem is that the itemscontrol cannot be scrollable, beacause the more I increase the number of items, the more these items become smaller, and so they are all visualized in the same screen. The problem seems to be related to the fact that the flipcontroll does not understand that the itemscontrol is scrollable, so it try to adapt its size.

I post my code here so you can understand better my problem:

 <ScrollViewer >
     <ItemsControl ItemsSource="{Binding}" x:Name="grid">                   



<UniformGrid />                   







<Image Source="{Binding}"></Image>                             



<Image Source={Binding}"></Image>                               







Thank you so much for replay.