Adding events to ScatterViewItems when implicitly creating them

Posted by James Hay on Stack Overflow See other posts from Stack Overflow or by James Hay
Published on 2009-06-03T12:11:15Z Indexed on 2010/03/08 13:06 UTC
Read the original article Hit count: 258

Filed under:
|
|
|
|

Not sure there's too many surface developers on here but hey ho...

If i have a scatterview which implicity creates the ScatterViewItem objects (see below), is it possible to retireve the contact events for each scatterViewItem? Also when i wrap tyhe image object in a ScatterViewItem explicitly the item no longer works. Could anyone advise as to why this is the case?

<s:ScatterView ItemsSource="{StaticResource DummyData}" >
   <s:ScatterView.ItemTemplate>
      <DataTemplate>
         <Image Source="{Binding Path=ImagePath}" />
      </DataTemplate>
   </s:ScatterView.ItemTemplate>
 </s:ScatterView>

© Stack Overflow or respective owner

Related posts about surface

Related posts about xaml