void companionHost_Click(object sender, RoutedEventArgs e) { var source = (ICompanionSource)((FrameworkElement)sender).Tag; foreach (var url in source.ClickTracking) { VastHelpers.FireTracking(url); } }
void iconHost_Click(object sender, RoutedEventArgs e) { var icon = (Microsoft.Media.Advertising.Icon)((FrameworkElement)sender).Tag; foreach (var url in icon.ClickTracking) { VastHelpers.FireTracking(url); } }
void companionElement_ImageOpened(object sender, RoutedEventArgs e) { var source = (ICompanionSource)((FrameworkElement)sender).Tag; foreach (var url in source.ViewTracking) { VastHelpers.FireTracking(url); } }
void iconElement_ImageOpened(object sender, RoutedEventArgs e) { var icon = (Microsoft.Media.Advertising.Icon)((FrameworkElement)sender).Tag; foreach (var url in icon.ViewTracking) { VastHelpers.FireTracking(url); } }