If you're binding to an object that has the image uri and audio clip uri:
<Image Source="{Binding ImagePath}" Tag="{Binding AudioPath} MouseLeftButtonDown="img_MouseLeftButtonDown" />
then in the event handler
void img_MouseLeftButtonDown(object sender,MouseButtonEventArgs e)
{
Image img = sender as Image;
if (img != null)
mePlayer.Source = img.Tag as Uri;
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…