Пример #1
0
        void companionHost_Click(object sender, RoutedEventArgs e)
        {
            var source = (ICompanionSource)((FrameworkElement)sender).Tag;

            foreach (var url in source.ClickTracking)
            {
                VastHelpers.FireTracking(url);
            }
        }
Пример #2
0
        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);
            }
        }
Пример #3
0
        void companionElement_ImageOpened(object sender, RoutedEventArgs e)
        {
            var source = (ICompanionSource)((FrameworkElement)sender).Tag;

            foreach (var url in source.ViewTracking)
            {
                VastHelpers.FireTracking(url);
            }
        }
Пример #4
0
        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);
            }
        }