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
- SharedPersonalizationStateInfo.cs
- TimelineClockCollection.cs
- SortFieldComparer.cs
- ClientFormsIdentity.cs
- CommandBindingCollection.cs
- MinimizableAttributeTypeConverter.cs
- GridLength.cs
- ListViewDataItem.cs
- FontNamesConverter.cs
- NTAccount.cs
- TypeInformation.cs
- DataGridViewColumnConverter.cs
- CodeTypeDelegate.cs
- XPathArrayIterator.cs
- RelOps.cs
- BehaviorEditorPart.cs
- Vector3dCollection.cs
- DataGridViewCellLinkedList.cs
- DeferredElementTreeState.cs
- TailPinnedEventArgs.cs
- ChannelManager.cs
- GridEntry.cs
- SqlError.cs
- Grid.cs
- XmlEventCache.cs
- TextBoxLine.cs
- ArcSegment.cs
- ZipPackagePart.cs
- CustomErrorsSection.cs
- Filter.cs
- CallbackHandler.cs
- InlineObject.cs
- XmlBoundElement.cs
- StorageBasedPackageProperties.cs
- ListenerElementsCollection.cs
- ValidatedMobileControlConverter.cs
- JsonClassDataContract.cs
- DataGridAutoGeneratingColumnEventArgs.cs
- ItemType.cs
- UpdateManifestForBrowserApplication.cs
- InputLanguageCollection.cs
- ReceiveCompletedEventArgs.cs
- WebPartConnectionsConfigureVerb.cs
- DbModificationClause.cs
- SafeArrayRankMismatchException.cs
- ImplicitInputBrush.cs
- FontNamesConverter.cs
- GcSettings.cs
- BulletDecorator.cs
- xmlformatgeneratorstatics.cs
- AccessViolationException.cs
- SmiContext.cs
- ExpressionBinding.cs
- ITreeGenerator.cs
- Timer.cs
- Color.cs
- EntitySetBase.cs
- HyperLinkColumn.cs
- SqlMethodCallConverter.cs
- COAUTHINFO.cs
- SimpleHandlerBuildProvider.cs
- WsatExtendedInformation.cs
- SecurityElement.cs
- CodeDirectoryCompiler.cs
- StylusButtonEventArgs.cs
- WindowsEditBox.cs
- ThreadStaticAttribute.cs
- EventProviderClassic.cs
- FigureParaClient.cs
- IMembershipProvider.cs
- HttpRequest.cs
- ServiceNameCollection.cs
- SecurityPermission.cs
- SqlFormatter.cs
- UIElementParagraph.cs
- TabControlToolboxItem.cs
- ToolStripManager.cs
- ParseNumbers.cs
- BidirectionalDictionary.cs
- ThreadSafeList.cs
- GcSettings.cs
- HttpHandlersSection.cs
- LayoutDump.cs
- DataGridColumnsPage.cs
- DataGridViewRowCollection.cs
- SinglePageViewer.cs
- IisTraceWebEventProvider.cs
- EdgeModeValidation.cs
- SystemParameters.cs
- Italic.cs
- SqlMethodAttribute.cs
- RuleSet.cs
- XPathDocumentNavigator.cs
- SecurityUtils.cs
- ArrayItemReference.cs
- MetadataCache.cs
- WorkflowWebHostingModule.cs
- AdornedElementPlaceholder.cs
- Control.cs
- HtmlTextArea.cs