// <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.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)