/V4/PrismLibrary/Desktop/Prism.Interactivity/InteractionRequest/InteractionRequestedEventArgs.cs
C# | 47 lines | 14 code | 3 blank | 30 comment | 0 complexity | 695982689c6683339328fc2b711b9230 MD5 | raw file
- //===================================================================================
- // Microsoft patterns & practices
- // Composite Application Guidance for Windows Presentation Foundation and Silverlight
- //===================================================================================
- // Copyright (c) Microsoft Corporation. All rights reserved.
- // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
- // OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
- // LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
- // FITNESS FOR A PARTICULAR PURPOSE.
- //===================================================================================
- // The example companies, organizations, products, domain names,
- // e-mail addresses, logos, people, places, and events depicted
- // herein are fictitious. No association with any real company,
- // organization, product, domain name, email address, logo, person,
- // places, or events is intended or should be inferred.
- //===================================================================================
- using System;
-
- namespace Microsoft.Practices.Prism.Interactivity.InteractionRequest
- {
- /// <summary>
- /// Event args for the <see cref="IInteractionRequest.Raised"/> event.
- /// </summary>
- public class InteractionRequestedEventArgs : EventArgs
- {
- /// <summary>
- /// Constructs a new instance of <see cref="InteractionRequestedEventArgs"/>
- /// </summary>
- /// <param name="context"></param>
- /// <param name="callback"></param>
- public InteractionRequestedEventArgs(Notification context, Action callback)
- {
- this.Context = context;
- this.Callback = callback;
- }
-
- /// <summary>
- /// Gets the context for a requested interaction.
- /// </summary>
- public Notification Context { get; private set; }
-
- /// <summary>
- /// Gets the callback to execute when an interaction is completed.
- /// </summary>
- public Action Callback { get; private set; }
- }
- }