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
- DynamicRenderer.cs
- StaticTextPointer.cs
- AutomationProperties.cs
- ComponentCodeDomSerializer.cs
- XmlSchemaSimpleTypeList.cs
- MonitoringDescriptionAttribute.cs
- DetailsViewUpdatedEventArgs.cs
- DesignerInterfaces.cs
- Screen.cs
- ToolStripOverflowButton.cs
- ParamArrayAttribute.cs
- SqlMethods.cs
- WindowsAuthenticationEventArgs.cs
- Command.cs
- MasterPage.cs
- ToolStripPanelCell.cs
- Trace.cs
- WebPartConnectionCollection.cs
- Activator.cs
- StrokeRenderer.cs
- Model3D.cs
- BitmapEncoder.cs
- Constants.cs
- ParameterInfo.cs
- FlowDocumentView.cs
- CodeSnippetStatement.cs
- ConstructorBuilder.cs
- XPathException.cs
- HashAlgorithm.cs
- UIElementAutomationPeer.cs
- PageThemeCodeDomTreeGenerator.cs
- LinkedList.cs
- StubHelpers.cs
- XamlHttpHandlerFactory.cs
- ScrollProperties.cs
- ResourceAssociationSetEnd.cs
- BaseHashHelper.cs
- XmlSchemaObjectCollection.cs
- Atom10FormatterFactory.cs
- ParseElement.cs
- DataGridViewHeaderCell.cs
- DataPagerCommandEventArgs.cs
- ConnectorDragDropGlyph.cs
- DiagnosticTrace.cs
- cryptoapiTransform.cs
- EntryPointNotFoundException.cs
- Evidence.cs
- PlatformCulture.cs
- ErrorFormatterPage.cs
- StreamFormatter.cs
- ToolboxItemCollection.cs
- TdsParameterSetter.cs
- FirstMatchCodeGroup.cs
- CounterSampleCalculator.cs
- ObjectCloneHelper.cs
- DataControlImageButton.cs
- PartitionedStream.cs
- TextEndOfSegment.cs
- ConstructorNeedsTagAttribute.cs
- InstanceValue.cs
- DesignerCategoryAttribute.cs
- WaitForChangedResult.cs
- WebControlsSection.cs
- InternalPermissions.cs
- RtfControls.cs
- CompositeFontParser.cs
- DataListItemEventArgs.cs
- StreamWriter.cs
- PromptEventArgs.cs
- StrokeNodeOperations.cs
- Transform3DGroup.cs
- AdornerLayer.cs
- MULTI_QI.cs
- ReferenceAssemblyAttribute.cs
- DefaultClaimSet.cs
- HttpWebRequestElement.cs
- XmlStreamStore.cs
- HttpCookiesSection.cs
- BitmapCache.cs
- QuaternionAnimationBase.cs
- TabControlAutomationPeer.cs
- UncommonField.cs
- EntityDataSourceWrapper.cs
- GenerateTemporaryAssemblyTask.cs
- FocusTracker.cs
- MsmqIntegrationMessageProperty.cs
- SchemaTypeEmitter.cs
- DoubleAnimationBase.cs
- ComponentDispatcher.cs
- SoapSchemaImporter.cs
- WebPartManagerInternals.cs
- ClassHandlersStore.cs
- CodeEventReferenceExpression.cs
- RegistrationServices.cs
- TextRangeSerialization.cs
- SQLResource.cs
- DataKeyCollection.cs
- ApplicationSecurityManager.cs
- ObjectListFieldCollection.cs
- ProcessModule.cs