Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Input / Command / ExecutedRoutedEventArgs.cs / 1305600 / ExecutedRoutedEventArgs.cs
//---------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------------- using System; using System.Windows; using System.Windows.Input; namespace System.Windows.Input { ////// Event handler for the Executed events. /// public delegate void ExecutedRoutedEventHandler(object sender, ExecutedRoutedEventArgs e); ////// Event arguments for the Executed events. /// public sealed class ExecutedRoutedEventArgs : RoutedEventArgs { #region Constructor ////// Initializes a new instance of this class. /// /// The command that is being executed. /// The parameter that was passed when executing the command. internal ExecutedRoutedEventArgs(ICommand command, object parameter) { if (command == null) { throw new ArgumentNullException("command"); } _command = command; _parameter = parameter; } #endregion #region Public Properties ////// The command being executed. /// public ICommand Command { get { return _command; } } ////// The parameter passed when executing the command. /// public object Parameter { get { return _parameter; } } #endregion #region Protected Methods ////// Calls the handler. /// /// Handler delegate to invoke /// Target element protected override void InvokeEventHandler(Delegate genericHandler, object target) { ExecutedRoutedEventHandler handler = (ExecutedRoutedEventHandler)genericHandler; handler(target as DependencyObject, this); } #endregion #region Data private ICommand _command; private object _parameter; #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- COM2ColorConverter.cs
- OpacityConverter.cs
- TextTreeUndo.cs
- DefaultSerializationProviderAttribute.cs
- XmlSiteMapProvider.cs
- CodeBinaryOperatorExpression.cs
- ActivityExecutorOperation.cs
- RegexMatchCollection.cs
- UnicastIPAddressInformationCollection.cs
- XmlSchemaException.cs
- HtmlTableRowCollection.cs
- ProfileSettings.cs
- PrimitiveType.cs
- StringAnimationBase.cs
- WebBrowserUriTypeConverter.cs
- WasEndpointConfigContainer.cs
- WebBrowserEvent.cs
- versioninfo.cs
- SignatureSummaryDialog.cs
- SignatureHelper.cs
- BaseProcessor.cs
- SoapReflectionImporter.cs
- DBCSCodePageEncoding.cs
- SafeNativeMethods.cs
- CallbackValidatorAttribute.cs
- SimplePropertyEntry.cs
- ScriptingWebServicesSectionGroup.cs
- SynchronizationContext.cs
- InfoCardBaseException.cs
- AnnotationHelper.cs
- DSACryptoServiceProvider.cs
- Polyline.cs
- ScalarOps.cs
- ContractNamespaceAttribute.cs
- HtmlInputText.cs
- PreviewKeyDownEventArgs.cs
- DataBindingCollectionConverter.cs
- MetafileHeaderWmf.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- ElementHostAutomationPeer.cs
- NavigationService.cs
- ResourceReferenceExpression.cs
- TextBoxBase.cs
- xamlnodes.cs
- CryptoApi.cs
- PreApplicationStartMethodAttribute.cs
- MasterPageBuildProvider.cs
- CqlLexerHelpers.cs
- MimeFormatExtensions.cs
- ImageMetadata.cs
- WindowsFont.cs
- TreeNode.cs
- SelectionRangeConverter.cs
- CodeGen.cs
- ObjectStorage.cs
- ErrorRuntimeConfig.cs
- FrameSecurityDescriptor.cs
- AppDomainUnloadedException.cs
- PersonalizationStateQuery.cs
- objectquery_tresulttype.cs
- ScaleTransform3D.cs
- GeneralTransformGroup.cs
- TextTreeInsertUndoUnit.cs
- NavigationFailedEventArgs.cs
- TextEditorSpelling.cs
- GridViewRowPresenterBase.cs
- Types.cs
- ObjectDataSourceView.cs
- StylusOverProperty.cs
- EventLogPropertySelector.cs
- UpdateExpressionVisitor.cs
- SqlAggregateChecker.cs
- ObjectListCommand.cs
- HtmlControlPersistable.cs
- Matrix.cs
- DrawingCollection.cs
- OpCopier.cs
- UTF8Encoding.cs
- Attributes.cs
- PageParser.cs
- ContextStaticAttribute.cs
- ReliableSessionBindingElement.cs
- DisposableCollectionWrapper.cs
- ValuePattern.cs
- LicenseManager.cs
- WsdlBuildProvider.cs
- Decoder.cs
- CmsInterop.cs
- SqlDependencyListener.cs
- ObservableCollection.cs
- RootBrowserWindow.cs
- DomNameTable.cs
- CodeIterationStatement.cs
- DataControlFieldCollection.cs
- EntityCommand.cs
- TransformGroup.cs
- ReturnType.cs
- RuleConditionDialog.cs
- FilterableAttribute.cs
- DesignerTransaction.cs