Click here to Skip to main content
15,896,269 members
Articles / Desktop Programming / WPF

The WPF Podcatcher Series - Part 2 (Structural Skinning)

Rate me:
Please Sign up or sign in to vote.
4.97/5 (58 votes)
5 Mar 2008CPOL16 min read 253.6K   7.2K   166  
The second article in a series devoted to a WPF application that plays streaming audio podcasts off the Internet. This article discusses the idea and implementation of look-less applications.
using System.Windows.Input;

namespace Podder
{
    /// <summary>
    /// Exposes routed commands used by the application.
    /// </summary>
    public static class Commands
    {
        /// <summary>
        /// Executed when the PodcastsControl should check to see if the Windows clipboard
        /// has a string on it to copy to the 'RSS Feed URL' TextBox.
        /// </summary>
        public static readonly RoutedCommand AutoDetectFeedUrlOnClipboard = new RoutedCommand();

        /// <summary>
        /// Executed when the PodcastsDialog should be shown.
        /// </summary>
        public static readonly RoutedCommand ManagePodcasts = new RoutedCommand();

        /// <summary>
        /// Executed when the selected episode should be set as the active episode.
        /// </summary>
        public static readonly RoutedCommand PlaySelectedEpisode = new RoutedCommand();

        /// <summary>
        /// Executed when the active podcast's list of episodes should be refreshed.
        /// </summary>
        public static readonly RoutedCommand RefreshEpisodes = new RoutedCommand();

        /// <summary>
        /// Executed when the user is seeking a new position in the active podcast.
        /// </summary>
        public static readonly RoutedCommand SeekPosition = new RoutedCommand();

        /// <summary>
        /// Executed when the active episode should be brought into view and selected.
        /// </summary>
        public static readonly RoutedCommand SelectActiveEpisode = new RoutedCommand();
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United States United States
Josh creates software, for iOS and Windows.

He works at Black Pixel as a Senior Developer.

Read his iOS Programming for .NET Developers[^] book to learn how to write iPhone and iPad apps by leveraging your existing .NET skills.

Use his Master WPF[^] app on your iPhone to sharpen your WPF skills on the go.

Check out his Advanced MVVM[^] book.

Visit his WPF blog[^] or stop by his iOS blog[^].

See his website Josh Smith Digital[^].

Comments and Discussions