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

OpenWPFChart: Assembling Charts from Components. Part II - Controls

Rate me:
Please Sign up or sign in to vote.
4.90/5 (14 votes)
26 Mar 2009CPOL10 min read 69.7K   2.2K   52  
Chart controls composed from Chart Parts
// <revision>$Id: DialogEvent.cs 18093 2009-03-16 04:15:06Z unknown $</revision>

#region Using directives

using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Media;


#endregion

namespace Microsoft.Samples.WPFNotepad
{
    /// <summary>
    /// Define delegate 
    /// </summary>
    /// <param name="sender">the send object for the event</param>
    /// <param name="e">the argument for the call back</param>
    public delegate void FontChosenEventHandler(object sender, FontChooserDialogAppliedEventsArgs e);

    /// <summary>
    /// Define the event arg for DialogApplied event
    /// </summary>
    public class FontChooserDialogAppliedEventsArgs : EventArgs
    {
        FontChoice _choice;

        /// <summary>
        /// constructor for the event arg
        /// </summary>
        /// <param name="aitem"></param>
        public FontChooserDialogAppliedEventsArgs(FontChoice choice)
        {
            if (choice == null)
            {
                throw new Exception("FontChooserDialogAppliedEventArgs: choice must be non-null");
            }
            _choice = choice;
        }

        /// <summary>
        /// Return a Typeface object that identifies the family, style, weight and stretch of the font selected by the user.
        /// </summary>
        public FontChoice FontChoice
        {
            get
            {
                return _choice;
            }
        }
    }
}

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
Team Leader
Russian Federation Russian Federation
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions