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
- ClientData.cs
- DoubleLink.cs
- XmlValidatingReader.cs
- Size3DConverter.cs
- DurationConverter.cs
- loginstatus.cs
- InfoCardCryptoHelper.cs
- TrustManagerPromptUI.cs
- EntityContainerRelationshipSetEnd.cs
- MatrixTransform.cs
- SafeFileMappingHandle.cs
- ZipIOCentralDirectoryFileHeader.cs
- XmlExpressionDumper.cs
- ClientFormsAuthenticationCredentials.cs
- oledbmetadatacollectionnames.cs
- WebPartVerbCollection.cs
- DataGridViewMethods.cs
- FamilyTypeface.cs
- RadioButtonPopupAdapter.cs
- Subtree.cs
- FontSource.cs
- TextSchema.cs
- ArrayElementGridEntry.cs
- Wizard.cs
- FieldBuilder.cs
- QuaternionAnimation.cs
- EntityKeyElement.cs
- RuntimeIdentifierPropertyAttribute.cs
- StorageConditionPropertyMapping.cs
- TransferRequestHandler.cs
- OutputScopeManager.cs
- SqlWebEventProvider.cs
- SmiMetaData.cs
- CacheMemory.cs
- FieldMetadata.cs
- Image.cs
- PrimitiveCodeDomSerializer.cs
- VideoDrawing.cs
- KoreanCalendar.cs
- Dynamic.cs
- StringTraceRecord.cs
- CompositeActivityValidator.cs
- DiagnosticSection.cs
- ClockGroup.cs
- FrugalList.cs
- ChangeTracker.cs
- ToolBarButtonClickEvent.cs
- WebPartActionVerb.cs
- TdsParserSessionPool.cs
- ConfigurationManager.cs
- MultiBindingExpression.cs
- CellLabel.cs
- PropertyRef.cs
- XmlSchemaInclude.cs
- XmlMapping.cs
- DeferredReference.cs
- HitTestDrawingContextWalker.cs
- EntityCodeGenerator.cs
- ZipIOLocalFileDataDescriptor.cs
- DrawingVisual.cs
- ContentPlaceHolder.cs
- FamilyMapCollection.cs
- DefaultTypeArgumentAttribute.cs
- ThreadAbortException.cs
- XPathItem.cs
- DoubleCollectionValueSerializer.cs
- FlowDocumentPageViewerAutomationPeer.cs
- TextParaLineResult.cs
- BinaryFormatterWriter.cs
- AddressHeader.cs
- TextWriter.cs
- PrintDialogDesigner.cs
- OutputCacheSettingsSection.cs
- Throw.cs
- GroupQuery.cs
- PerformanceCounterPermissionAttribute.cs
- ActiveXSite.cs
- RouteValueDictionary.cs
- PersonalizationStateInfo.cs
- GenericWebPart.cs
- ValueHandle.cs
- ConstantProjectedSlot.cs
- ReadOnlyHierarchicalDataSource.cs
- DriveNotFoundException.cs
- OdbcUtils.cs
- MachineSettingsSection.cs
- PrincipalPermission.cs
- OleDbRowUpdatingEvent.cs
- ConfigurationSectionHelper.cs
- XslCompiledTransform.cs
- FileEnumerator.cs
- GeometryCombineModeValidation.cs
- RawStylusInputCustomDataList.cs
- ArrayItemValue.cs
- JsonReader.cs
- IisTraceWebEventProvider.cs
- CollectionBuilder.cs
- EncryptedXml.cs
- HttpHandlersSection.cs
- BaseCodeDomTreeGenerator.cs