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
- FactoryId.cs
- AutoGeneratedField.cs
- XmlBinaryReader.cs
- EnumerableRowCollection.cs
- UIElementIsland.cs
- WindowsTokenRoleProvider.cs
- LinkedResource.cs
- VBIdentifierNameEditor.cs
- DataControlLinkButton.cs
- SrgsGrammarCompiler.cs
- DeflateStreamAsyncResult.cs
- SpotLight.cs
- IOException.cs
- StorageMappingFragment.cs
- VerticalAlignConverter.cs
- UnsafePeerToPeerMethods.cs
- SamlAttribute.cs
- XmlQueryType.cs
- DataConnectionHelper.cs
- ApplicationTrust.cs
- ObjectToIdCache.cs
- ResourceDescriptionAttribute.cs
- BasicKeyConstraint.cs
- ClientUIRequest.cs
- EncryptedData.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- DataKeyArray.cs
- MultiView.cs
- GridViewCommandEventArgs.cs
- altserialization.cs
- Memoizer.cs
- DBBindings.cs
- HyperLinkColumn.cs
- CellTreeNodeVisitors.cs
- BoundColumn.cs
- ZipIOExtraFieldZip64Element.cs
- DaylightTime.cs
- ParamArrayAttribute.cs
- MembershipPasswordException.cs
- AudioFileOut.cs
- TreeChangeInfo.cs
- OleDbPropertySetGuid.cs
- ReferencedType.cs
- UntrustedRecipientException.cs
- activationcontext.cs
- ServiceNameElement.cs
- TemplateInstanceAttribute.cs
- InvokePatternIdentifiers.cs
- lengthconverter.cs
- PeerContact.cs
- InvalidDataContractException.cs
- FixedFindEngine.cs
- ActivityStateRecord.cs
- DetailsViewDeletedEventArgs.cs
- IndentedWriter.cs
- TypedElement.cs
- StrokeNodeData.cs
- ImageKeyConverter.cs
- PageThemeBuildProvider.cs
- CannotUnloadAppDomainException.cs
- DataSourceXmlClassAttribute.cs
- BindingCompleteEventArgs.cs
- ProxyManager.cs
- TransformCollection.cs
- altserialization.cs
- ProtocolState.cs
- ClientSettings.cs
- SystemTcpConnection.cs
- XmlAnyElementAttributes.cs
- BitmapDownload.cs
- StreamWithDictionary.cs
- SqlNode.cs
- ControlBuilder.cs
- InternalConfigSettingsFactory.cs
- MsmqTransportReceiveParameters.cs
- TransformPatternIdentifiers.cs
- DefaultAsyncDataDispatcher.cs
- OdbcInfoMessageEvent.cs
- ForEachAction.cs
- XmlSchemaCompilationSettings.cs
- AvTraceFormat.cs
- UserControl.cs
- ToolStripDropDownMenu.cs
- SocketAddress.cs
- File.cs
- COAUTHIDENTITY.cs
- EntityKeyElement.cs
- TogglePattern.cs
- DataPointer.cs
- BindingListCollectionView.cs
- ListControl.cs
- AutomationFocusChangedEventArgs.cs
- cache.cs
- NamespaceInfo.cs
- AspCompat.cs
- OracleCommand.cs
- InternalEnumValidatorAttribute.cs
- _OSSOCK.cs
- WindowsEditBoxRange.cs
- GlyphingCache.cs