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
- ParseChildrenAsPropertiesAttribute.cs
- MarkerProperties.cs
- WebBrowser.cs
- VectorValueSerializer.cs
- PriorityChain.cs
- BitmapEffectInput.cs
- RawAppCommandInputReport.cs
- NavigationProgressEventArgs.cs
- UpdateManifestForBrowserApplication.cs
- FileClassifier.cs
- FtpWebResponse.cs
- ToolStripCollectionEditor.cs
- XmlConvert.cs
- TableItemProviderWrapper.cs
- PerformanceCounterPermission.cs
- EntityContainerEmitter.cs
- SizeValueSerializer.cs
- Viewport3DVisual.cs
- _Events.cs
- Vector3DAnimationBase.cs
- ValidationResult.cs
- SrgsElementList.cs
- QilUnary.cs
- AtomServiceDocumentSerializer.cs
- QilGenerator.cs
- ThemeDirectoryCompiler.cs
- TagPrefixCollection.cs
- TableStyle.cs
- FileClassifier.cs
- IncrementalCompileAnalyzer.cs
- Terminate.cs
- DataControlReference.cs
- AssemblyAttributesGoHere.cs
- ScalarType.cs
- RegexCaptureCollection.cs
- EdmEntityTypeAttribute.cs
- DrawingState.cs
- IndentTextWriter.cs
- DataGridSortCommandEventArgs.cs
- ExternalFile.cs
- XmlTextEncoder.cs
- SqlNodeAnnotation.cs
- BamlRecordHelper.cs
- SecurityPolicySection.cs
- SerializeAbsoluteContext.cs
- TextElementEditingBehaviorAttribute.cs
- ExtendedPropertyDescriptor.cs
- HyperLink.cs
- ComponentCollection.cs
- EditorBrowsableAttribute.cs
- QilCloneVisitor.cs
- SelectionHighlightInfo.cs
- XmlWrappingWriter.cs
- MessageQuerySet.cs
- PropertySet.cs
- SiteMapDataSource.cs
- WebServiceEnumData.cs
- WebPartEditorCancelVerb.cs
- SqlAggregateChecker.cs
- ColumnProvider.cs
- ExpiredSecurityTokenException.cs
- Nodes.cs
- NotifyCollectionChangedEventArgs.cs
- MenuEventArgs.cs
- RequestCacheManager.cs
- GenericTextProperties.cs
- BaseCodePageEncoding.cs
- DictionaryGlobals.cs
- AstTree.cs
- ResourcePart.cs
- OutputCacheSettingsSection.cs
- ConnectorEditor.cs
- ResXBuildProvider.cs
- GridView.cs
- OneToOneMappingSerializer.cs
- PageBreakRecord.cs
- NotifyParentPropertyAttribute.cs
- SqlDataSourceCache.cs
- SafeArrayRankMismatchException.cs
- TrackingProfileCache.cs
- Paragraph.cs
- tibetanshape.cs
- MLangCodePageEncoding.cs
- SqlBooleanizer.cs
- HandleCollector.cs
- ToolBar.cs
- BaseTemplateCodeDomTreeGenerator.cs
- Padding.cs
- ProxyElement.cs
- ReflectionHelper.cs
- TextureBrush.cs
- ApplicationContext.cs
- PolyQuadraticBezierSegment.cs
- SelfSignedCertificate.cs
- _LoggingObject.cs
- TextMarkerSource.cs
- _ContextAwareResult.cs
- SoapIgnoreAttribute.cs
- GeneralTransform3D.cs
- TargetException.cs