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
- ConnectionProviderAttribute.cs
- SoapObjectWriter.cs
- DesignColumn.cs
- DropDownButton.cs
- RenderOptions.cs
- XmlNamespaceDeclarationsAttribute.cs
- DynamicHyperLink.cs
- objectresult_tresulttype.cs
- TargetFrameworkAttribute.cs
- CategoryGridEntry.cs
- AsymmetricKeyExchangeFormatter.cs
- Rect3D.cs
- FixedBufferAttribute.cs
- HttpProfileGroupBase.cs
- EdmError.cs
- Guid.cs
- TableCellCollection.cs
- Pool.cs
- FileInfo.cs
- WaitHandleCannotBeOpenedException.cs
- Crypto.cs
- WebPartPersonalization.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- Preprocessor.cs
- Crypto.cs
- X509DefaultServiceCertificateElement.cs
- HyperLink.cs
- StrokeRenderer.cs
- DataGridViewImageCell.cs
- UserMapPath.cs
- CompletedAsyncResult.cs
- GridSplitter.cs
- LiteralControl.cs
- Normalization.cs
- ActiveXHost.cs
- StateDesigner.CommentLayoutGlyph.cs
- UriTemplateTableMatchCandidate.cs
- XmlSchemaDatatype.cs
- XmlBoundElement.cs
- SafeNativeMethods.cs
- RtfToXamlReader.cs
- ContentDisposition.cs
- BoolExpr.cs
- TableStyle.cs
- DesignerToolboxInfo.cs
- TimerElapsedEvenArgs.cs
- SqlErrorCollection.cs
- Crc32.cs
- DataPagerCommandEventArgs.cs
- MatrixTransform.cs
- ServerValidateEventArgs.cs
- ToolBar.cs
- Soap.cs
- UserControl.cs
- DoubleLink.cs
- GlobalDataBindingHandler.cs
- BuildManager.cs
- XmlNullResolver.cs
- XmlSchemaAnnotation.cs
- WizardSideBarListControlItemEventArgs.cs
- StreamWithDictionary.cs
- X509Chain.cs
- InternalPermissions.cs
- UInt32.cs
- ConstNode.cs
- WebPartCatalogCloseVerb.cs
- OAVariantLib.cs
- ExpanderAutomationPeer.cs
- SymbolType.cs
- SafeRightsManagementHandle.cs
- ConcurrentDictionary.cs
- XPathMessageContext.cs
- DelegateSerializationHolder.cs
- connectionpool.cs
- __FastResourceComparer.cs
- HuffModule.cs
- IdentityReference.cs
- XmlName.cs
- SemanticBasicElement.cs
- CellParaClient.cs
- MD5.cs
- CreateRefExpr.cs
- EdmEntityTypeAttribute.cs
- SerTrace.cs
- ImageSource.cs
- UIElementPropertyUndoUnit.cs
- ToolStripDropDownClosingEventArgs.cs
- SystemMulticastIPAddressInformation.cs
- SQLDateTime.cs
- SettingsProperty.cs
- Stack.cs
- RangeContentEnumerator.cs
- DecimalConverter.cs
- MSAANativeProvider.cs
- TemplatePropertyEntry.cs
- DelegatingConfigHost.cs
- TextDecorationUnitValidation.cs
- HttpTransportSecurity.cs
- CodeEntryPointMethod.cs
- Model3D.cs