リスト ボックスのデータ テンプレートによって生成されたイメージ コントロールがあります。コードからこの画像にアクセスするにはどうすればよいですか? これを試しましたが、メトロアプリで作業しているため、IsSynchronizedWithCurrentItem を設定できません。
私が持っているxamlは次のとおりです。
<ListBox x:Name="options_stack" HorizontalAlignment="Left" Margin="198,569,0,33" Width="603" Background="#FF603C74" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Disabled" ScrollViewer.HorizontalScrollMode="Auto" >
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Orientation="Horizontal" />
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
<ListBox.ItemTemplate>
<DataTemplate>
<Image x:Name="options_image" Source = "{Binding}" Stretch="Fill" Width="166" MaxHeight="156" MaxWidth="166" MinHeight="156" MinWidth="166" Tapped="apply_image_tapped" />
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>