Microsoft® Surface® Live Stream Code Sample

ive Stream enables businesses to engage their customers face-to-face using the most recent and relevant Twitter™, Flickr®, and RSS newsfeeds.

C# (5.9 MB)
 
 
 
 
 
4.3 Star
(4)
6,652 times
Add to favorites
4/19/2011
E-mail Twitter del.icio.us Digg Facebook

Solution explorer

C#
using System.Windows;

namespace LiveStream.Controls
{
    /// <summary>
    /// A RoutedEventArgs type which allows the specification of a custom source object.
    /// </summary>
    public class UserSourceRoutedEventArgs : RoutedEventArgs
    {
        /// <summary>
        /// Backing store for UserSource.
        /// </summary>
        private DependencyObject _userSource;

        /// <summary>
        /// Gets the custom source object.
        /// </summary>
        /// <value>The custom source object.</value>
        public DependencyObject UserSource
        {
            get { return _userSource; }
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="UserSourceRoutedEventArgs"/> class.
        /// </summary>
        /// <param name="routedEvent">The routed event.</param>
        /// <param name="source">The custom source object.</param>
        public UserSourceRoutedEventArgs(RoutedEvent routedEvent, DependencyObject source)
            : base(routedEvent)
        {
            _userSource = source;
        }
    }
}