Click here to Skip to main content
15,886,737 members
Articles / Desktop Programming / WPF

Skinnable and Animated popup window in WPF

Rate me:
Please Sign up or sign in to vote.
4.82/5 (26 votes)
30 Oct 2011CPOL4 min read 84.6K   9.3K   50  
How to create a skinnable and animatable MSN Live Messenger style popup window in WPF with MVVM design patterns
using System;


namespace NotifyMessageDemo
{
    public class NotifyMessage
    {
        private readonly string _skinName;
        private readonly string _headerText;
        private readonly string _bodyText;
        private readonly Action _clickAction;

        public NotifyMessage(string skinName, string headerText, string bodyText, Action clickAction)
        {
            _skinName       = skinName;
            _headerText     = headerText;
            _bodyText       = bodyText;
            _clickAction    = clickAction;
        }

        public string SkinName
        {
            get { return _skinName; }
        }
        
        public string HeaderText
        {
            get { return _headerText; }
        }

        public string BodyText
        {
            get { return _bodyText; }
        }

        public Action OnClick
        {
            get { return _clickAction; }
        }
    }
}

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
Singapore Singapore
Elvin Cheng is currently living in Woodlands, Singapore. He has been developing applications with the .NET Framework, using C# and ASP.NET since October 2002. Elvin specializes in building Real-time monitoring and tracking information system for Semi-conductor manufacturing industry. During his spare time, he enjoys reading books, watching movie and gym.

Comments and Discussions