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
- XmlDigitalSignatureProcessor.cs
- CompiledIdentityConstraint.cs
- TemplatePropertyEntry.cs
- ConcurrentDictionary.cs
- SID.cs
- WindowsStatic.cs
- SharedPersonalizationStateInfo.cs
- _CookieModule.cs
- LocalFileSettingsProvider.cs
- TextRangeBase.cs
- ECDiffieHellman.cs
- StronglyTypedResourceBuilder.cs
- WebPartUtil.cs
- SafeNativeMethods.cs
- IdentityNotMappedException.cs
- BlobPersonalizationState.cs
- TypeLoadException.cs
- ListenerAdapterBase.cs
- ObjectDataSourceSelectingEventArgs.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- PermissionSetTriple.cs
- DropShadowBitmapEffect.cs
- BulletedListEventArgs.cs
- SqlBuilder.cs
- ProgramNode.cs
- PerformanceCounterPermissionAttribute.cs
- AffineTransform3D.cs
- ForwardPositionQuery.cs
- TypeConstant.cs
- WebPartVerbCollection.cs
- TraceUtility.cs
- PropertyMapper.cs
- ValidatorUtils.cs
- ArgumentNullException.cs
- InheritanceContextHelper.cs
- MessageDroppedTraceRecord.cs
- AppDomainAttributes.cs
- WebBrowserNavigatingEventHandler.cs
- thaishape.cs
- TextEditorTables.cs
- EasingFunctionBase.cs
- ScrollData.cs
- Bezier.cs
- WorkflowService.cs
- Version.cs
- ViewgenGatekeeper.cs
- ClientSettingsSection.cs
- EntityContainerEmitter.cs
- SimpleTypeResolver.cs
- HwndAppCommandInputProvider.cs
- ProgressiveCrcCalculatingStream.cs
- SiteMapPathDesigner.cs
- ServiceAuthorizationBehavior.cs
- SoapTypeAttribute.cs
- XmlSerializationReader.cs
- ScrollItemProviderWrapper.cs
- EntityDataSourceDataSelection.cs
- SafeCryptoHandles.cs
- UriTemplateLiteralQueryValue.cs
- CodeFieldReferenceExpression.cs
- ModifierKeysConverter.cs
- querybuilder.cs
- OutOfProcStateClientManager.cs
- SendKeys.cs
- StorageEndPropertyMapping.cs
- WhileDesigner.xaml.cs
- ExpressionBindingCollection.cs
- ToolboxComponentsCreatingEventArgs.cs
- ListControl.cs
- MediaScriptCommandRoutedEventArgs.cs
- KeyEvent.cs
- BasicCellRelation.cs
- SystemKeyConverter.cs
- SoapSchemaMember.cs
- DataListCommandEventArgs.cs
- ObjectItemNoOpAssemblyLoader.cs
- MetadataAssemblyHelper.cs
- HashMembershipCondition.cs
- DocumentPageViewAutomationPeer.cs
- SqlTriggerAttribute.cs
- ComponentDispatcher.cs
- UnsafeNativeMethods.cs
- XmlToDatasetMap.cs
- EventlogProvider.cs
- ReferenceEqualityComparer.cs
- MemberExpression.cs
- NullReferenceException.cs
- HttpResponseHeader.cs
- XamlReader.cs
- RegexNode.cs
- MasterPageBuildProvider.cs
- OrderedDictionaryStateHelper.cs
- ScrollProperties.cs
- ConfigurationSectionGroup.cs
- HwndStylusInputProvider.cs
- ButtonColumn.cs
- FileUpload.cs
- EdmMember.cs
- DesignTimeTemplateParser.cs
- SubtreeProcessor.cs