[COLOR=#333333][FONT=Arial]Im developing an windows 8 metro app in c# and xaml
I’ve created a drag and drop function in my app which i’ve used a code sample and works ok. The images need to have a click event, so ive used the tapped event. However I need the event to have a different result.
[/FONT][/COLOR][COLOR=#333333][FONT=Segoe UI]I need to be able to define these images loaded via the c# separately, [/FONT][/COLOR][COLOR=#333333][FONT=Segoe UI]So i can then apply the tapped event to each image.[/FONT][/COLOR][COLOR=#333333][FONT=Arial]
[/FONT][/COLOR]
protected override void OnNavigatedTo(NavigationEventArgs e) {
source.Add(new Item("Assets/Achord.png"));
source.Add(new Item("Assets/Bchord.png"));
source.Add(new Item("Assets/Cchord.png"));
source.Add(new Item("Assets/Dchord.png"));
source.Add(new Item("Assets/Echord.png"));
source.Add(new Item("Assets/Fchord.png"));
source.Add(new Item("Assets/Gchord.png"));
availableItems.ItemsSource = source;
chosenItems.ItemsSource = destination;
}
[COLOR=#333333][FONT=Arial]
[/FONT][/COLOR]