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
- ImageClickEventArgs.cs
- TextPenaltyModule.cs
- NotSupportedException.cs
- StorageComplexTypeMapping.cs
- AsymmetricKeyExchangeFormatter.cs
- EditingMode.cs
- ErrorHandler.cs
- XamlToRtfParser.cs
- MessageQueuePermissionAttribute.cs
- ControlUtil.cs
- XsdDuration.cs
- MachineKeySection.cs
- StreamInfo.cs
- AuthenticateEventArgs.cs
- ActivityWithResultWrapper.cs
- ProtocolsSection.cs
- CompositeActivityDesigner.cs
- TableLayoutSettingsTypeConverter.cs
- TypeFieldSchema.cs
- XPathSingletonIterator.cs
- TreeNode.cs
- OrderedDictionaryStateHelper.cs
- HttpTransportSecurityElement.cs
- VectorKeyFrameCollection.cs
- TextRange.cs
- NameValueFileSectionHandler.cs
- ExpressionBinding.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- DeploymentExceptionMapper.cs
- AspProxy.cs
- Menu.cs
- DayRenderEvent.cs
- ByteAnimationUsingKeyFrames.cs
- Binding.cs
- GcSettings.cs
- CustomAttributeSerializer.cs
- Activation.cs
- smtpconnection.cs
- UrlPath.cs
- DataGridViewLayoutData.cs
- SmtpClient.cs
- SymmetricAlgorithm.cs
- HideDisabledControlAdapter.cs
- SqlDataSourceStatusEventArgs.cs
- WebPartCancelEventArgs.cs
- ContactManager.cs
- IdleTimeoutMonitor.cs
- SoundPlayer.cs
- CacheDependency.cs
- XmlSchemaComplexContentRestriction.cs
- CodeVariableReferenceExpression.cs
- XPathParser.cs
- __TransparentProxy.cs
- TypeToTreeConverter.cs
- GlyphInfoList.cs
- TextDecoration.cs
- httpserverutility.cs
- Size.cs
- XPathDocumentIterator.cs
- ZipIOCentralDirectoryBlock.cs
- TrustSection.cs
- IPPacketInformation.cs
- EndpointInfoCollection.cs
- ParameterCollection.cs
- CodeCompiler.cs
- IPAddress.cs
- FixedSOMElement.cs
- hresults.cs
- X509CertificateTrustedIssuerElementCollection.cs
- XPathExpr.cs
- DesignSurfaceServiceContainer.cs
- ConfigurationManagerInternalFactory.cs
- WorkflowRuntimeEndpoint.cs
- __TransparentProxy.cs
- BufferedWebEventProvider.cs
- ObjectHandle.cs
- QilInvoke.cs
- TdsParameterSetter.cs
- QilParameter.cs
- SHA1.cs
- NativeMethods.cs
- ComAdminWrapper.cs
- HttpListenerPrefixCollection.cs
- UnsafeNativeMethods.cs
- ThaiBuddhistCalendar.cs
- PeerUnsafeNativeCryptMethods.cs
- EdgeModeValidation.cs
- XmlElementAttributes.cs
- OleDbStruct.cs
- AttachedAnnotationChangedEventArgs.cs
- VisualStateManager.cs
- EdmMember.cs
- EntitySqlQueryBuilder.cs
- ResourceCategoryAttribute.cs
- CustomErrorCollection.cs
- WindowsAltTab.cs
- ClientSideQueueItem.cs
- EasingQuaternionKeyFrame.cs
- DrawingDrawingContext.cs
- RuleConditionDialog.Designer.cs