Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Input / Command / ExecutedRoutedEventArgs.cs / 1 / 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
- Grid.cs
- BaseParser.cs
- SmiEventSink.cs
- BlurEffect.cs
- AsynchronousChannel.cs
- CommonDialog.cs
- CharKeyFrameCollection.cs
- ThreadInterruptedException.cs
- DefaultTextStoreTextComposition.cs
- EmptyControlCollection.cs
- DataGridViewRowHeaderCell.cs
- DataGridViewRowsRemovedEventArgs.cs
- AppDomain.cs
- HtmlSelect.cs
- CreateCardRequest.cs
- MemberRelationshipService.cs
- Contracts.cs
- MenuStrip.cs
- SqlUserDefinedAggregateAttribute.cs
- ListViewItemMouseHoverEvent.cs
- SmtpNegotiateAuthenticationModule.cs
- RsaSecurityTokenParameters.cs
- ByteStack.cs
- BitmapImage.cs
- FindCriteria11.cs
- QilNode.cs
- NamedPermissionSet.cs
- StreamReader.cs
- UnSafeCharBuffer.cs
- CalendarSelectionChangedEventArgs.cs
- ListBindingConverter.cs
- Lease.cs
- ProcessHostServerConfig.cs
- DistinctQueryOperator.cs
- WebPartHelpVerb.cs
- ChangeConflicts.cs
- FormatterServicesNoSerializableCheck.cs
- PieceDirectory.cs
- TCPClient.cs
- NamespaceEmitter.cs
- PathGeometry.cs
- PropertyMapper.cs
- InstanceCreationEditor.cs
- webproxy.cs
- AmbientProperties.cs
- XmlChildEnumerator.cs
- QueryPageSettingsEventArgs.cs
- EntityViewGenerationAttribute.cs
- CornerRadius.cs
- RadioButton.cs
- RepeaterCommandEventArgs.cs
- ConstructorExpr.cs
- DecimalAnimationUsingKeyFrames.cs
- XmlName.cs
- ReadWriteObjectLock.cs
- RoleService.cs
- ThicknessAnimation.cs
- OuterGlowBitmapEffect.cs
- EndEvent.cs
- _LocalDataStoreMgr.cs
- UIHelper.cs
- ColumnHeaderConverter.cs
- ITextView.cs
- DataServiceEntityAttribute.cs
- IndexerReference.cs
- DNS.cs
- ValidatingReaderNodeData.cs
- XmlSchemaElement.cs
- WebPartMenu.cs
- DeflateStream.cs
- WebScriptServiceHost.cs
- SystemGatewayIPAddressInformation.cs
- EntityTemplateUserControl.cs
- Transactions.cs
- ToolBarButtonDesigner.cs
- OptimizedTemplateContentHelper.cs
- CodeDirectoryCompiler.cs
- PropertyBuilder.cs
- CustomTrackingQuery.cs
- PtsHost.cs
- Pkcs7Signer.cs
- TabControl.cs
- DBProviderConfigurationHandler.cs
- LogSwitch.cs
- LeaseManager.cs
- PrtCap_Public.cs
- EventInfo.cs
- DataContractSerializerOperationFormatter.cs
- UrlMappingCollection.cs
- UIPropertyMetadata.cs
- SchemaImporter.cs
- TemplateControlCodeDomTreeGenerator.cs
- ClientTarget.cs
- InputReportEventArgs.cs
- MemberNameValidator.cs
- DataTableCollection.cs
- GPStream.cs
- TreeNodeCollectionEditor.cs
- VSWCFServiceContractGenerator.cs
- GetRecipientRequest.cs